New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dub

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dub - npm Package Compare versions

Comparing version 0.29.17 to 0.29.18

6

lib/config.d.ts

@@ -35,6 +35,6 @@ import { HTTPClient } from "./http";

readonly openapiDocVersion: "0.0.1";
readonly sdkVersion: "0.29.17";
readonly genVersion: "2.339.1";
readonly userAgent: "speakeasy-sdk/typescript 0.29.17 2.339.1 0.0.1 dub";
readonly sdkVersion: "0.29.18";
readonly genVersion: "2.340.3";
readonly userAgent: "speakeasy-sdk/typescript 0.29.18 2.340.3 0.0.1 dub";
};
//# sourceMappingURL=config.d.ts.map

@@ -35,6 +35,6 @@ "use strict";

openapiDocVersion: "0.0.1",
sdkVersion: "0.29.17",
genVersion: "2.339.1",
userAgent: "speakeasy-sdk/typescript 0.29.17 2.339.1 0.0.1 dub",
sdkVersion: "0.29.18",
genVersion: "2.340.3",
userAgent: "speakeasy-sdk/typescript 0.29.18 2.340.3 0.0.1 dub",
};
//# sourceMappingURL=config.js.map

@@ -34,3 +34,16 @@ export declare class EncodingError extends Error {

}) => string;
export declare function queryJoin(...args: string[]): string;
type QueryEncoderOptions = {
explode?: boolean;
charEncoding?: "percent" | "none";
};
type QueryEncoder = (key: string, value: unknown, options?: QueryEncoderOptions) => string;
type BulkQueryEncoder = (values: Record<string, unknown>, options?: QueryEncoderOptions) => string;
export declare function queryEncoder(f: QueryEncoder): BulkQueryEncoder;
export declare const encodeJSONQuery: BulkQueryEncoder;
export declare const encodeFormQuery: BulkQueryEncoder;
export declare const encodeSpaceDelimitedQuery: BulkQueryEncoder;
export declare const encodePipeDelimitedQuery: BulkQueryEncoder;
export declare const encodeDeepObjectQuery: BulkQueryEncoder;
export {};
//# sourceMappingURL=encodings.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.encodeSimple = exports.encodeJSON = exports.encodeDeepObject = exports.encodeBodyForm = exports.encodePipeDelimited = exports.encodeSpaceDelimited = exports.encodeForm = exports.encodeLabel = exports.encodeMatrix = exports.EncodingError = void 0;
exports.encodeDeepObjectQuery = exports.encodePipeDelimitedQuery = exports.encodeSpaceDelimitedQuery = exports.encodeFormQuery = exports.encodeJSONQuery = exports.queryEncoder = exports.queryJoin = exports.encodeSimple = exports.encodeJSON = exports.encodeDeepObject = exports.encodeBodyForm = exports.encodePipeDelimited = exports.encodeSpaceDelimited = exports.encodeForm = exports.encodeLabel = exports.encodeMatrix = exports.EncodingError = void 0;
const base64_1 = require("./base64");

@@ -307,2 +307,27 @@ const is_plain_object_1 = require("./is-plain-object");

}
function queryJoin(...args) {
return args.filter(Boolean).join("&");
}
exports.queryJoin = queryJoin;
function queryEncoder(f) {
const bulkEncode = function (values, options) {
var _a, _b;
const opts = {
...options,
explode: (_a = options === null || options === void 0 ? void 0 : options.explode) !== null && _a !== void 0 ? _a : true,
charEncoding: (_b = options === null || options === void 0 ? void 0 : options.charEncoding) !== null && _b !== void 0 ? _b : "percent",
};
const encoded = Object.entries(values).map(([key, value]) => {
return f(key, value, opts);
});
return queryJoin(...encoded);
};
return bulkEncode;
}
exports.queryEncoder = queryEncoder;
exports.encodeJSONQuery = queryEncoder(encodeJSON);
exports.encodeFormQuery = queryEncoder(exports.encodeForm);
exports.encodeSpaceDelimitedQuery = queryEncoder(exports.encodeSpaceDelimited);
exports.encodePipeDelimitedQuery = queryEncoder(exports.encodePipeDelimited);
exports.encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
//# sourceMappingURL=encodings.js.map
{
"name": "dub",
"version": "0.29.17",
"version": "0.29.18",
"author": "Dub",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -74,55 +74,26 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/analytics")();
const query$ = [
enc$.encodeForm("browser", payload$.browser, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("city", payload$.city, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("country", payload$.country, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("event", payload$.event, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("externalId", payload$.externalId, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("groupBy", payload$.groupBy, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("interval", payload$.interval, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("linkId", payload$.linkId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("qr", payload$.qr, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("timezone", payload$.timezone, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
key: payload$.key,
linkId: payload$.linkId,
device: payload$.device,
browser: payload$.browser,
tagId: payload$.tagId,
city: payload$.city,
url: payload$.url,
workspaceId: this.options$.workspaceId,
event: payload$.event,
domain: payload$.domain,
externalId: payload$.externalId,
timezone: payload$.timezone,
country: payload$.country,
projectSlug: this.options$.projectSlug,
qr: payload$.qr,
groupBy: payload$.groupBy,
interval: payload$.interval,
start: payload$.start,
os: payload$.os,
referer: payload$.referer,
end: payload$.end,
root: payload$.root,
});
let security$;

@@ -129,0 +100,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -75,14 +75,6 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/domains")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -159,16 +151,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.AddDomainRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/domains")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -249,20 +233,9 @@ if (typeof this.options$.token === "function") {

const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: (0, encodings_1.encodeSimple)("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -343,22 +316,11 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.UpdateDomainRequest$.outboundSchema.parse(value$), "Input validation failed");
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = (0, encodings_1.encodeJSON)("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: (0, encodings_1.encodeSimple)("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -439,20 +401,9 @@ if (typeof this.options$.token === "function") {

const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: (0, encodings_1.encodeSimple)("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}/primary")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -533,22 +484,11 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.TransferDomainRequest$.outboundSchema.parse(value$), "Input validation failed");
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = (0, encodings_1.encodeJSON)("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: (0, encodings_1.encodeSimple)("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}/transfer")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -555,0 +495,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -76,33 +76,16 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/links")();
const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("page", payload$.page, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("sort", payload$.sort, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagIds", payload$.tagIds, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagNames", payload$.tagNames, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("userId", payload$.userId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("withTags", payload$.withTags, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
tagId: payload$.tagId,
sort: payload$.sort,
page: payload$.page,
workspaceId: this.options$.workspaceId,
domain: payload$.domain,
tagIds: payload$.tagIds,
tagNames: payload$.tagNames,
search: payload$.search,
userId: payload$.userId,
showArchived: payload$.showArchived,
withTags: payload$.withTags,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -180,16 +163,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.CreateLinkRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -268,35 +243,15 @@ if (typeof this.options$.token === "function") {

const path$ = this.templateURLComponent("/links/count")();
const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("groupBy", payload$.groupBy, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagIds", payload$.tagIds, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagNames", payload$.tagNames, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("userId", payload$.userId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("withTags", payload$.withTags, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
tagIds: payload$.tagIds,
tagNames: payload$.tagNames,
groupBy: payload$.groupBy,
userId: payload$.userId,
showArchived: payload$.showArchived,
withTags: payload$.withTags,
projectSlug: this.options$.projectSlug,
domain: payload$.domain,
tagId: payload$.tagId,
search: payload$.search,
});
let security$;

@@ -375,21 +330,10 @@ if (typeof this.options$.token === "function") {

const path$ = this.templateURLComponent("/links/info")();
const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("externalId", payload$.externalId, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("linkId", payload$.linkId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
domain: payload$.domain,
key: payload$.key,
linkId: payload$.linkId,
externalId: payload$.externalId,
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -470,3 +414,3 @@ if (typeof this.options$.token === "function") {

const pathParams$ = {
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
linkId: (0, encodings_1.encodeSimple)("linkId", payload$.linkId, {
explode: false,

@@ -477,14 +421,6 @@ charEncoding: "percent",

const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -565,5 +501,5 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.UpdateLinkRequest$.outboundSchema.parse(value$), "Input validation failed");
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = (0, encodings_1.encodeJSON)("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
linkId: (0, encodings_1.encodeSimple)("linkId", payload$.linkId, {
explode: false,

@@ -574,14 +510,6 @@ charEncoding: "percent",

const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -659,16 +587,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => z.array(operations.RequestBody$.outboundSchema).optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links/bulk")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -746,16 +666,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.UpsertLinkRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links/upsert")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -762,0 +674,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -73,7 +73,5 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/metatags")();
const query$ = [
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
url: payload$.url,
});
let security$;

@@ -80,0 +78,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -75,21 +75,10 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/qr")();
const query$ = [
enc$.encodeForm("bgColor", payload$.bgColor, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("fgColor", payload$.fgColor, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("includeMargin", payload$.includeMargin, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("level", payload$.level, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("size", payload$.size, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
includeMargin: payload$.includeMargin,
url: payload$.url,
size: payload$.size,
level: payload$.level,
fgColor: payload$.fgColor,
bgColor: payload$.bgColor,
});
let security$;

@@ -96,0 +85,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -75,14 +75,6 @@ const schemas$ = __importStar(require("../lib/schemas"));

const path$ = this.templateURLComponent("/tags")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -159,16 +151,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.CreateTagRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/tags")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -175,0 +159,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -73,16 +73,8 @@ const schemas$ = __importStar(require("../lib/schemas"));

const payload$ = schemas$.parse(input$, (value$) => operations.TrackLeadRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/lead")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -160,16 +152,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.TrackSaleRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/sale")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -247,16 +231,8 @@ if (typeof this.options$.token === "function") {

const payload$ = schemas$.parse(input$, (value$) => operations.TrackCustomerRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/customer")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = (0, encodings_1.encodeFormQuery)({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});
let security$;

@@ -263,0 +239,0 @@ if (typeof this.options$.token === "function") {

@@ -32,3 +32,3 @@ "use strict";

const config_1 = require("../lib/config");
const enc$ = __importStar(require("../lib/encodings"));
const encodings_1 = require("../lib/encodings");
const http_1 = require("../lib/http");

@@ -145,3 +145,3 @@ const schemas$ = __importStar(require("../lib/schemas"));

const payload$ = schemas$.parse(input$, (value$) => operations.CreateWorkspaceRequestBody$.outboundSchema.optional().parse(value$), "Input validation failed");
const body$ = payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
const body$ = payload$ === undefined ? null : (0, encodings_1.encodeJSON)("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/workspaces")();

@@ -222,3 +222,3 @@ const query$ = "";

const pathParams$ = {
idOrSlug: enc$.encodeSimple("idOrSlug", payload$.idOrSlug, {
idOrSlug: (0, encodings_1.encodeSimple)("idOrSlug", payload$.idOrSlug, {
explode: false,

@@ -225,0 +225,0 @@ charEncoding: "percent",

@@ -67,5 +67,5 @@ /*

openapiDocVersion: "0.0.1",
sdkVersion: "0.29.17",
genVersion: "2.339.1",
userAgent: "speakeasy-sdk/typescript 0.29.17 2.339.1 0.0.1 dub",
sdkVersion: "0.29.18",
genVersion: "2.340.3",
userAgent: "speakeasy-sdk/typescript 0.29.18 2.340.3 0.0.1 dub",
} as const;

@@ -386,1 +386,47 @@ /*

}
export function queryJoin(...args: string[]): string {
return args.filter(Boolean).join("&");
}
type QueryEncoderOptions = {
explode?: boolean;
charEncoding?: "percent" | "none";
};
type QueryEncoder = (
key: string,
value: unknown,
options?: QueryEncoderOptions,
) => string;
type BulkQueryEncoder = (
values: Record<string, unknown>,
options?: QueryEncoderOptions,
) => string;
export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
const bulkEncode = function (
values: Record<string, unknown>,
options?: QueryEncoderOptions,
): string {
const opts: QueryEncoderOptions = {
...options,
explode: options?.explode ?? true,
charEncoding: options?.charEncoding ?? "percent",
};
const encoded = Object.entries(values).map(([key, value]) => {
return f(key, value, opts);
});
return queryJoin(...encoded);
};
return bulkEncode;
}
export const encodeJSONQuery = queryEncoder(encodeJSON);
export const encodeFormQuery = queryEncoder(encodeForm);
export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -66,55 +66,26 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("browser", payload$.browser, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("city", payload$.city, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("country", payload$.country, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("event", payload$.event, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("externalId", payload$.externalId, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("groupBy", payload$.groupBy, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("interval", payload$.interval, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("linkId", payload$.linkId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("qr", payload$.qr, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("referer", payload$.referer, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("timezone", payload$.timezone, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
key: payload$.key,
linkId: payload$.linkId,
device: payload$.device,
browser: payload$.browser,
tagId: payload$.tagId,
city: payload$.city,
url: payload$.url,
workspaceId: this.options$.workspaceId,
event: payload$.event,
domain: payload$.domain,
externalId: payload$.externalId,
timezone: payload$.timezone,
country: payload$.country,
projectSlug: this.options$.projectSlug,
qr: payload$.qr,
groupBy: payload$.groupBy,
interval: payload$.interval,
start: payload$.start,
os: payload$.os,
referer: payload$.referer,
end: payload$.end,
root: payload$.root,
});

@@ -121,0 +92,0 @@ let security$;

@@ -7,3 +7,7 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import {
encodeFormQuery as encodeFormQuery$,
encodeJSON as encodeJSON$,
encodeSimple as encodeSimple$,
} from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -62,14 +66,6 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -164,18 +160,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/domains")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -274,21 +262,10 @@ let security$;

const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: encodeSimple$("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -387,24 +364,13 @@ let security$;

);
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: encodeSimple$("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -500,21 +466,10 @@ let security$;

const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: encodeSimple$("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}/primary")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -613,24 +568,13 @@ let security$;

);
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
slug: enc$.encodeSimple("slug", payload$.slug, {
explode: false,
charEncoding: "percent",
}),
slug: encodeSimple$("slug", payload$.slug, { explode: false, charEncoding: "percent" }),
};
const path$ = this.templateURLComponent("/domains/{slug}/transfer")(pathParams$);
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -637,0 +581,0 @@ let security$;

@@ -7,3 +7,7 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import {
encodeFormQuery as encodeFormQuery$,
encodeJSON as encodeJSON$,
encodeSimple as encodeSimple$,
} from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -68,33 +72,16 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("page", payload$.page, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("sort", payload$.sort, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagIds", payload$.tagIds, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagNames", payload$.tagNames, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("userId", payload$.userId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("withTags", payload$.withTags, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
tagId: payload$.tagId,
sort: payload$.sort,
page: payload$.page,
workspaceId: this.options$.workspaceId,
domain: payload$.domain,
tagIds: payload$.tagIds,
tagNames: payload$.tagNames,
search: payload$.search,
userId: payload$.userId,
showArchived: payload$.showArchived,
withTags: payload$.withTags,
projectSlug: this.options$.projectSlug,
});

@@ -190,18 +177,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -299,35 +278,15 @@ let security$;

const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("groupBy", payload$.groupBy, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("search", payload$.search, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("showArchived", payload$.showArchived, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagIds", payload$.tagIds, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("tagNames", payload$.tagNames, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("userId", payload$.userId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("withTags", payload$.withTags, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
tagIds: payload$.tagIds,
tagNames: payload$.tagNames,
groupBy: payload$.groupBy,
userId: payload$.userId,
showArchived: payload$.showArchived,
withTags: payload$.withTags,
projectSlug: this.options$.projectSlug,
domain: payload$.domain,
tagId: payload$.tagId,
search: payload$.search,
});

@@ -425,21 +384,10 @@ let security$;

const query$ = [
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("externalId", payload$.externalId, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("linkId", payload$.linkId, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
domain: payload$.domain,
key: payload$.key,
linkId: payload$.linkId,
externalId: payload$.externalId,
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -538,3 +486,3 @@ let security$;

const pathParams$ = {
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
linkId: encodeSimple$("linkId", payload$.linkId, {
explode: false,

@@ -546,14 +494,6 @@ charEncoding: "percent",

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -652,6 +592,6 @@ let security$;

);
const body$ = enc$.encodeJSON("body", payload$.RequestBody, { explode: true });
const body$ = encodeJSON$("body", payload$.RequestBody, { explode: true });
const pathParams$ = {
linkId: enc$.encodeSimple("linkId", payload$.linkId, {
linkId: encodeSimple$("linkId", payload$.linkId, {
explode: false,

@@ -663,14 +603,6 @@ charEncoding: "percent",

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -766,18 +698,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links/bulk")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -873,18 +797,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/links/upsert")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -891,0 +807,0 @@ let security$;

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -65,7 +65,5 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
url: payload$.url,
});

@@ -72,0 +70,0 @@ let security$;

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -64,21 +64,10 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("bgColor", payload$.bgColor, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("fgColor", payload$.fgColor, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("includeMargin", payload$.includeMargin, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("level", payload$.level, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("size", payload$.size, { explode: true, charEncoding: "percent" }),
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
includeMargin: payload$.includeMargin,
url: payload$.url,
size: payload$.size,
level: payload$.level,
fgColor: payload$.fgColor,
bgColor: payload$.bgColor,
});

@@ -85,0 +74,0 @@ let security$;

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -62,14 +62,6 @@ import * as schemas$ from "../lib/schemas";

const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -164,18 +156,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/tags")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -182,0 +166,0 @@ let security$;

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeFormQuery as encodeFormQuery$, encodeJSON as encodeJSON$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -64,18 +64,10 @@ import * as schemas$ from "../lib/schemas";

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/lead")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -171,18 +163,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/sale")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -279,18 +263,10 @@ let security$;

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });
const path$ = this.templateURLComponent("/track/customer")();
const query$ = [
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
explode: true,
charEncoding: "percent",
}),
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
explode: true,
charEncoding: "percent",
}),
]
.filter(Boolean)
.join("&");
const query$ = encodeFormQuery$({
workspaceId: this.options$.workspaceId,
projectSlug: this.options$.projectSlug,
});

@@ -297,0 +273,0 @@ let security$;

@@ -7,3 +7,3 @@ /*

import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
import * as enc$ from "../lib/encodings";
import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings";
import { HTTPClient } from "../lib/http";

@@ -148,3 +148,3 @@ import * as schemas$ from "../lib/schemas";

const body$ =
payload$ === undefined ? null : enc$.encodeJSON("body", payload$, { explode: true });
payload$ === undefined ? null : encodeJSON$("body", payload$, { explode: true });

@@ -245,3 +245,3 @@ const path$ = this.templateURLComponent("/workspaces")();

const pathParams$ = {
idOrSlug: enc$.encodeSimple("idOrSlug", payload$.idOrSlug, {
idOrSlug: encodeSimple$("idOrSlug", payload$.idOrSlug, {
explode: false,

@@ -248,0 +248,0 @@ charEncoding: "percent",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc