@apideck/unify 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/connections/README.md +190 -42
- package/docs/sdks/connectionsettings/README.md +190 -42
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/models/components/address.d.ts +8 -8
- package/models/components/address.d.ts.map +1 -1
- package/models/components/address.js +13 -14
- package/models/components/address.js.map +1 -1
- package/models/components/connectionimportdata.d.ts +15 -15
- package/models/components/connectionimportdata.d.ts.map +1 -1
- package/models/components/connectionimportdata.js +18 -19
- package/models/components/connectionimportdata.js.map +1 -1
- package/models/components/consumerconnection.d.ts +6 -26
- package/models/components/consumerconnection.d.ts.map +1 -1
- package/models/components/consumerconnection.js +3 -26
- package/models/components/consumerconnection.js.map +1 -1
- package/models/components/contact.d.ts +9 -9
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +16 -15
- package/models/components/contact.js.map +1 -1
- package/models/components/employee.d.ts +5 -0
- package/models/components/employee.d.ts.map +1 -1
- package/models/components/employee.js +4 -0
- package/models/components/employee.js.map +1 -1
- package/models/components/employeesfilter.d.ts +5 -0
- package/models/components/employeesfilter.d.ts.map +1 -1
- package/models/components/employeesfilter.js +2 -0
- package/models/components/employeesfilter.js.map +1 -1
- package/models/components/formfieldoption.d.ts +10 -2
- package/models/components/formfieldoption.d.ts.map +1 -1
- package/models/components/formfieldoption.js +12 -4
- package/models/components/formfieldoption.js.map +1 -1
- package/models/components/formfieldoptiongroup.d.ts +29 -4
- package/models/components/formfieldoptiongroup.d.ts.map +1 -1
- package/models/components/formfieldoptiongroup.js +34 -5
- package/models/components/formfieldoptiongroup.js.map +1 -1
- package/models/components/simpleformfieldoption.d.ts +27 -2
- package/models/components/simpleformfieldoption.d.ts.map +1 -1
- package/models/components/simpleformfieldoption.js +33 -3
- package/models/components/simpleformfieldoption.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +11 -3
- package/src/models/components/address.ts +15 -14
- package/src/models/components/connectionimportdata.ts +24 -33
- package/src/models/components/consumerconnection.ts +4 -53
- package/src/models/components/contact.ts +17 -18
- package/src/models/components/employee.ts +9 -0
- package/src/models/components/employeesfilter.ts +7 -0
- package/src/models/components/formfieldoption.ts +25 -7
- package/src/models/components/formfieldoptiongroup.ts +50 -8
- package/src/models/components/simpleformfieldoption.ts +42 -4
|
@@ -26,23 +26,52 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.FormFieldOptionGroup$ = exports.FormFieldOptionGroup$outboundSchema = exports.FormFieldOptionGroup$inboundSchema = void 0;
|
|
29
|
+
exports.FormFieldOptionGroup$ = exports.FormFieldOptionGroup$outboundSchema = exports.FormFieldOptionGroup$inboundSchema = exports.FormFieldOptionGroupOptionType$ = exports.FormFieldOptionGroupOptionType$outboundSchema = exports.FormFieldOptionGroupOptionType$inboundSchema = exports.FormFieldOptionGroupOptionType = void 0;
|
|
30
30
|
exports.formFieldOptionGroupToJSON = formFieldOptionGroupToJSON;
|
|
31
31
|
exports.formFieldOptionGroupFromJSON = formFieldOptionGroupFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
33
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
35
|
const simpleformfieldoption_js_1 = require("./simpleformfieldoption.js");
|
|
36
|
+
exports.FormFieldOptionGroupOptionType = {
|
|
37
|
+
Group: "group",
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.FormFieldOptionGroupOptionType$inboundSchema = z.nativeEnum(exports.FormFieldOptionGroupOptionType);
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.FormFieldOptionGroupOptionType$outboundSchema = exports.FormFieldOptionGroupOptionType$inboundSchema;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var FormFieldOptionGroupOptionType$;
|
|
48
|
+
(function (FormFieldOptionGroupOptionType$) {
|
|
49
|
+
/** @deprecated use `FormFieldOptionGroupOptionType$inboundSchema` instead. */
|
|
50
|
+
FormFieldOptionGroupOptionType$.inboundSchema = exports.FormFieldOptionGroupOptionType$inboundSchema;
|
|
51
|
+
/** @deprecated use `FormFieldOptionGroupOptionType$outboundSchema` instead. */
|
|
52
|
+
FormFieldOptionGroupOptionType$.outboundSchema = exports.FormFieldOptionGroupOptionType$outboundSchema;
|
|
53
|
+
})(FormFieldOptionGroupOptionType$ || (exports.FormFieldOptionGroupOptionType$ = FormFieldOptionGroupOptionType$ = {}));
|
|
35
54
|
/** @internal */
|
|
36
55
|
exports.FormFieldOptionGroup$inboundSchema = z.object({
|
|
37
56
|
id: z.string().optional(),
|
|
38
|
-
label: z.string()
|
|
39
|
-
options: z.array(simpleformfieldoption_js_1.SimpleFormFieldOption$inboundSchema)
|
|
57
|
+
label: z.string(),
|
|
58
|
+
options: z.array(simpleformfieldoption_js_1.SimpleFormFieldOption$inboundSchema),
|
|
59
|
+
option_type: exports.FormFieldOptionGroupOptionType$inboundSchema,
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return (0, primitives_js_1.remap)(v, {
|
|
62
|
+
"option_type": "optionType",
|
|
63
|
+
});
|
|
40
64
|
});
|
|
41
65
|
/** @internal */
|
|
42
66
|
exports.FormFieldOptionGroup$outboundSchema = z.object({
|
|
43
67
|
id: z.string().optional(),
|
|
44
|
-
label: z.string()
|
|
45
|
-
options: z.array(simpleformfieldoption_js_1.SimpleFormFieldOption$outboundSchema)
|
|
68
|
+
label: z.string(),
|
|
69
|
+
options: z.array(simpleformfieldoption_js_1.SimpleFormFieldOption$outboundSchema),
|
|
70
|
+
optionType: exports.FormFieldOptionGroupOptionType$outboundSchema,
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return (0, primitives_js_1.remap)(v, {
|
|
73
|
+
optionType: "option_type",
|
|
74
|
+
});
|
|
46
75
|
});
|
|
47
76
|
/**
|
|
48
77
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formfieldoptiongroup.js","sourceRoot":"","sources":["../../src/models/components/formfieldoptiongroup.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"formfieldoptiongroup.js","sourceRoot":"","sources":["../../src/models/components/formfieldoptiongroup.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,gEAMC;AAED,oEAQC;AArHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAIjD,yEAKoC;AAEvB,QAAA,8BAA8B,GAAG;IAC5C,KAAK,EAAE,OAAO;CACN,CAAC;AAYX,gBAAgB;AACH,QAAA,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC;AAEjD,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,oDAA4C,CAAC;AAEjD;;;GAGG;AACH,IAAiB,+BAA+B,CAK/C;AALD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAC9E,CAAC,EALgB,+BAA+B,+CAA/B,+BAA+B,QAK/C;AAED,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,MAA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}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
export type Five = string | number | number;
|
|
5
6
|
export type SimpleFormFieldOptionValue = string | number | number | boolean | Array<string | number | number>;
|
|
7
|
+
export declare const OptionType: {
|
|
8
|
+
readonly Simple: "simple";
|
|
9
|
+
};
|
|
10
|
+
export type OptionType = ClosedEnum<typeof OptionType>;
|
|
6
11
|
export type SimpleFormFieldOption = {
|
|
7
|
-
label
|
|
12
|
+
label: string;
|
|
8
13
|
value?: string | number | number | boolean | Array<string | number | number> | undefined;
|
|
14
|
+
optionType: OptionType;
|
|
9
15
|
};
|
|
10
16
|
/** @internal */
|
|
11
17
|
export declare const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown>;
|
|
@@ -48,11 +54,30 @@ export declare namespace SimpleFormFieldOptionValue$ {
|
|
|
48
54
|
export declare function simpleFormFieldOptionValueToJSON(simpleFormFieldOptionValue: SimpleFormFieldOptionValue): string;
|
|
49
55
|
export declare function simpleFormFieldOptionValueFromJSON(jsonString: string): SafeParseResult<SimpleFormFieldOptionValue, SDKValidationError>;
|
|
50
56
|
/** @internal */
|
|
57
|
+
export declare const OptionType$inboundSchema: z.ZodNativeEnum<typeof OptionType>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const OptionType$outboundSchema: z.ZodNativeEnum<typeof OptionType>;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export declare namespace OptionType$ {
|
|
65
|
+
/** @deprecated use `OptionType$inboundSchema` instead. */
|
|
66
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
67
|
+
readonly Simple: "simple";
|
|
68
|
+
}>;
|
|
69
|
+
/** @deprecated use `OptionType$outboundSchema` instead. */
|
|
70
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
71
|
+
readonly Simple: "simple";
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
51
75
|
export declare const SimpleFormFieldOption$inboundSchema: z.ZodType<SimpleFormFieldOption, z.ZodTypeDef, unknown>;
|
|
52
76
|
/** @internal */
|
|
53
77
|
export type SimpleFormFieldOption$Outbound = {
|
|
54
|
-
label
|
|
78
|
+
label: string;
|
|
55
79
|
value?: string | number | number | boolean | Array<string | number | number> | undefined;
|
|
80
|
+
option_type: string;
|
|
56
81
|
};
|
|
57
82
|
/** @internal */
|
|
58
83
|
export declare const SimpleFormFieldOption$outboundSchema: z.ZodType<SimpleFormFieldOption$Outbound, z.ZodTypeDef, SimpleFormFieldOption>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleformfieldoption.d.ts","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"simpleformfieldoption.d.ts","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,0BAA0B,GAClC,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAEpC,eAAO,MAAM,UAAU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E,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAerB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SimpleFormFieldOption$ = exports.SimpleFormFieldOption$outboundSchema = exports.SimpleFormFieldOption$inboundSchema = exports.SimpleFormFieldOptionValue$ = exports.SimpleFormFieldOptionValue$outboundSchema = exports.SimpleFormFieldOptionValue$inboundSchema = exports.Five$ = exports.Five$outboundSchema = exports.Five$inboundSchema = void 0;
|
|
29
|
+
exports.SimpleFormFieldOption$ = exports.SimpleFormFieldOption$outboundSchema = exports.SimpleFormFieldOption$inboundSchema = exports.OptionType$ = exports.OptionType$outboundSchema = exports.OptionType$inboundSchema = exports.SimpleFormFieldOptionValue$ = exports.SimpleFormFieldOptionValue$outboundSchema = exports.SimpleFormFieldOptionValue$inboundSchema = exports.Five$ = exports.Five$outboundSchema = exports.Five$inboundSchema = exports.OptionType = void 0;
|
|
30
30
|
exports.fiveToJSON = fiveToJSON;
|
|
31
31
|
exports.fiveFromJSON = fiveFromJSON;
|
|
32
32
|
exports.simpleFormFieldOptionValueToJSON = simpleFormFieldOptionValueToJSON;
|
|
@@ -34,7 +34,11 @@ exports.simpleFormFieldOptionValueFromJSON = simpleFormFieldOptionValueFromJSON;
|
|
|
34
34
|
exports.simpleFormFieldOptionToJSON = simpleFormFieldOptionToJSON;
|
|
35
35
|
exports.simpleFormFieldOptionFromJSON = simpleFormFieldOptionFromJSON;
|
|
36
36
|
const z = __importStar(require("zod"));
|
|
37
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
37
38
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
39
|
+
exports.OptionType = {
|
|
40
|
+
Simple: "simple",
|
|
41
|
+
};
|
|
38
42
|
/** @internal */
|
|
39
43
|
exports.Five$inboundSchema = z
|
|
40
44
|
.union([z.string(), z.number().int(), z.number()]);
|
|
@@ -91,8 +95,24 @@ function simpleFormFieldOptionValueFromJSON(jsonString) {
|
|
|
91
95
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SimpleFormFieldOptionValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimpleFormFieldOptionValue' from JSON`);
|
|
92
96
|
}
|
|
93
97
|
/** @internal */
|
|
98
|
+
exports.OptionType$inboundSchema = z
|
|
99
|
+
.nativeEnum(exports.OptionType);
|
|
100
|
+
/** @internal */
|
|
101
|
+
exports.OptionType$outboundSchema = exports.OptionType$inboundSchema;
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
+
*/
|
|
106
|
+
var OptionType$;
|
|
107
|
+
(function (OptionType$) {
|
|
108
|
+
/** @deprecated use `OptionType$inboundSchema` instead. */
|
|
109
|
+
OptionType$.inboundSchema = exports.OptionType$inboundSchema;
|
|
110
|
+
/** @deprecated use `OptionType$outboundSchema` instead. */
|
|
111
|
+
OptionType$.outboundSchema = exports.OptionType$outboundSchema;
|
|
112
|
+
})(OptionType$ || (exports.OptionType$ = OptionType$ = {}));
|
|
113
|
+
/** @internal */
|
|
94
114
|
exports.SimpleFormFieldOption$inboundSchema = z.object({
|
|
95
|
-
label: z.string()
|
|
115
|
+
label: z.string(),
|
|
96
116
|
value: z.union([
|
|
97
117
|
z.string(),
|
|
98
118
|
z.number().int(),
|
|
@@ -100,10 +120,15 @@ exports.SimpleFormFieldOption$inboundSchema = z.object({
|
|
|
100
120
|
z.boolean(),
|
|
101
121
|
z.array(z.union([z.string(), z.number().int(), z.number()])),
|
|
102
122
|
]).optional(),
|
|
123
|
+
option_type: exports.OptionType$inboundSchema,
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
126
|
+
"option_type": "optionType",
|
|
127
|
+
});
|
|
103
128
|
});
|
|
104
129
|
/** @internal */
|
|
105
130
|
exports.SimpleFormFieldOption$outboundSchema = z.object({
|
|
106
|
-
label: z.string()
|
|
131
|
+
label: z.string(),
|
|
107
132
|
value: z.union([
|
|
108
133
|
z.string(),
|
|
109
134
|
z.number().int(),
|
|
@@ -111,6 +136,11 @@ exports.SimpleFormFieldOption$outboundSchema = z.object({
|
|
|
111
136
|
z.boolean(),
|
|
112
137
|
z.array(z.union([z.string(), z.number().int(), z.number()])),
|
|
113
138
|
]).optional(),
|
|
139
|
+
optionType: exports.OptionType$outboundSchema,
|
|
140
|
+
}).transform((v) => {
|
|
141
|
+
return (0, primitives_js_1.remap)(v, {
|
|
142
|
+
optionType: "option_type",
|
|
143
|
+
});
|
|
114
144
|
});
|
|
115
145
|
/**
|
|
116
146
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleformfieldoption.js","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"simpleformfieldoption.js","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":";AAAA;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C,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;QAChB,CAAC,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,OAAO,EAAE;QACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;KAC7D,CAAC,CAAC,QAAQ,EAAE;IACb,UAAU,EAAE,iCAAyB;CACtC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -63,8 +63,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
63
63
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
|
-
openapiDocVersion: "10.12.
|
|
67
|
-
sdkVersion: "0.20.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 0.20.
|
|
66
|
+
openapiDocVersion: "10.12.4",
|
|
67
|
+
sdkVersion: "0.20.1",
|
|
68
|
+
genVersion: "2.559.0",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.20.1 2.559.0 10.12.4 @apideck/unify",
|
|
70
70
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as components from "../models/components/index.js";
|
|
6
6
|
import { env } from "./env.js";
|
|
7
|
+
|
|
7
8
|
type OAuth2PasswordFlow = {
|
|
8
9
|
username: string;
|
|
9
10
|
password?: string | undefined;
|
|
@@ -85,7 +86,9 @@ type SecurityInputOAuth2ClientCredentials = {
|
|
|
85
86
|
value:
|
|
86
87
|
| { clientID?: string | undefined; clientSecret?: string | undefined }
|
|
87
88
|
| null
|
|
89
|
+
| string
|
|
88
90
|
| undefined;
|
|
91
|
+
fieldName?: string;
|
|
89
92
|
};
|
|
90
93
|
|
|
91
94
|
type SecurityInputOAuth2PasswordCredentials = {
|
|
@@ -94,13 +97,13 @@ type SecurityInputOAuth2PasswordCredentials = {
|
|
|
94
97
|
| string
|
|
95
98
|
| null
|
|
96
99
|
| undefined;
|
|
97
|
-
fieldName
|
|
100
|
+
fieldName?: string;
|
|
98
101
|
};
|
|
99
102
|
|
|
100
103
|
type SecurityInputCustom = {
|
|
101
104
|
type: "http:custom";
|
|
102
105
|
value: any | null | undefined;
|
|
103
|
-
fieldName
|
|
106
|
+
fieldName?: string;
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
export type SecurityInput =
|
|
@@ -137,6 +140,9 @@ export function resolveSecurity(
|
|
|
137
140
|
typeof o.value === "string" && !!o.value
|
|
138
141
|
);
|
|
139
142
|
} else if (o.type === "oauth2:client_credentials") {
|
|
143
|
+
if (typeof o.value == "string") {
|
|
144
|
+
return !!o.value;
|
|
145
|
+
}
|
|
140
146
|
return o.value.clientID != null || o.value.clientSecret != null;
|
|
141
147
|
} else if (typeof o.value === "string") {
|
|
142
148
|
return !!o.value;
|
|
@@ -225,7 +231,9 @@ function applyBearer(
|
|
|
225
231
|
value = `Bearer ${value}`;
|
|
226
232
|
}
|
|
227
233
|
|
|
228
|
-
|
|
234
|
+
if (spec.fieldName !== undefined) {
|
|
235
|
+
state.headers[spec.fieldName] = value;
|
|
236
|
+
}
|
|
229
237
|
}
|
|
230
238
|
|
|
231
239
|
export function resolveGlobalSecurity(
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of address.
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const Type = {
|
|
16
16
|
Primary: "primary",
|
|
17
17
|
Secondary: "secondary",
|
|
18
18
|
Home: "home",
|
|
@@ -24,7 +24,7 @@ export const AddressType = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The type of address.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
28
28
|
|
|
29
29
|
export type Address = {
|
|
30
30
|
/**
|
|
@@ -34,7 +34,7 @@ export type Address = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The type of address.
|
|
36
36
|
*/
|
|
37
|
-
type?:
|
|
37
|
+
type?: Type | null | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The address string. Some APIs don't provide structured address data.
|
|
40
40
|
*/
|
|
@@ -126,29 +126,30 @@ export type Address = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/** @internal */
|
|
129
|
-
export const
|
|
130
|
-
|
|
129
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
130
|
+
Type,
|
|
131
|
+
);
|
|
131
132
|
|
|
132
133
|
/** @internal */
|
|
133
|
-
export const
|
|
134
|
-
|
|
134
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
135
|
+
Type$inboundSchema;
|
|
135
136
|
|
|
136
137
|
/**
|
|
137
138
|
* @internal
|
|
138
139
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
140
|
*/
|
|
140
|
-
export namespace
|
|
141
|
-
/** @deprecated use `
|
|
142
|
-
export const inboundSchema =
|
|
143
|
-
/** @deprecated use `
|
|
144
|
-
export const outboundSchema =
|
|
141
|
+
export namespace Type$ {
|
|
142
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = Type$inboundSchema;
|
|
144
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = Type$outboundSchema;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
/** @internal */
|
|
148
149
|
export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
|
|
149
150
|
z.object({
|
|
150
151
|
id: z.nullable(z.string()).optional(),
|
|
151
|
-
type: z.nullable(
|
|
152
|
+
type: z.nullable(Type$inboundSchema).optional(),
|
|
152
153
|
string: z.nullable(z.string()).optional(),
|
|
153
154
|
name: z.nullable(z.string()).optional(),
|
|
154
155
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -216,7 +217,7 @@ export const Address$outboundSchema: z.ZodType<
|
|
|
216
217
|
Address
|
|
217
218
|
> = z.object({
|
|
218
219
|
id: z.nullable(z.string()).optional(),
|
|
219
|
-
type: z.nullable(
|
|
220
|
+
type: z.nullable(Type$outboundSchema).optional(),
|
|
220
221
|
string: z.nullable(z.string()).optional(),
|
|
221
222
|
name: z.nullable(z.string()).optional(),
|
|
222
223
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -30,14 +30,14 @@ export type Credentials = {
|
|
|
30
30
|
/**
|
|
31
31
|
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
32
32
|
*/
|
|
33
|
-
export type
|
|
33
|
+
export type Settings = {};
|
|
34
34
|
|
|
35
35
|
export type ConnectionImportData = {
|
|
36
36
|
credentials?: Credentials | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
39
39
|
*/
|
|
40
|
-
settings?:
|
|
40
|
+
settings?: Settings | null | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Attach your own consumer specific metadata
|
|
43
43
|
*/
|
|
@@ -120,52 +120,46 @@ export function credentialsFromJSON(
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/** @internal */
|
|
123
|
-
export const
|
|
124
|
-
|
|
123
|
+
export const Settings$inboundSchema: z.ZodType<
|
|
124
|
+
Settings,
|
|
125
125
|
z.ZodTypeDef,
|
|
126
126
|
unknown
|
|
127
127
|
> = z.object({});
|
|
128
128
|
|
|
129
129
|
/** @internal */
|
|
130
|
-
export type
|
|
130
|
+
export type Settings$Outbound = {};
|
|
131
131
|
|
|
132
132
|
/** @internal */
|
|
133
|
-
export const
|
|
134
|
-
|
|
133
|
+
export const Settings$outboundSchema: z.ZodType<
|
|
134
|
+
Settings$Outbound,
|
|
135
135
|
z.ZodTypeDef,
|
|
136
|
-
|
|
136
|
+
Settings
|
|
137
137
|
> = z.object({});
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* @internal
|
|
141
141
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
142
|
*/
|
|
143
|
-
export namespace
|
|
144
|
-
/** @deprecated use `
|
|
145
|
-
export const inboundSchema =
|
|
146
|
-
/** @deprecated use `
|
|
147
|
-
export const outboundSchema =
|
|
148
|
-
/** @deprecated use `
|
|
149
|
-
export type Outbound =
|
|
143
|
+
export namespace Settings$ {
|
|
144
|
+
/** @deprecated use `Settings$inboundSchema` instead. */
|
|
145
|
+
export const inboundSchema = Settings$inboundSchema;
|
|
146
|
+
/** @deprecated use `Settings$outboundSchema` instead. */
|
|
147
|
+
export const outboundSchema = Settings$outboundSchema;
|
|
148
|
+
/** @deprecated use `Settings$Outbound` instead. */
|
|
149
|
+
export type Outbound = Settings$Outbound;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
export function
|
|
153
|
-
|
|
154
|
-
): string {
|
|
155
|
-
return JSON.stringify(
|
|
156
|
-
ConnectionImportDataSettings$outboundSchema.parse(
|
|
157
|
-
connectionImportDataSettings,
|
|
158
|
-
),
|
|
159
|
-
);
|
|
152
|
+
export function settingsToJSON(settings: Settings): string {
|
|
153
|
+
return JSON.stringify(Settings$outboundSchema.parse(settings));
|
|
160
154
|
}
|
|
161
155
|
|
|
162
|
-
export function
|
|
156
|
+
export function settingsFromJSON(
|
|
163
157
|
jsonString: string,
|
|
164
|
-
): SafeParseResult<
|
|
158
|
+
): SafeParseResult<Settings, SDKValidationError> {
|
|
165
159
|
return safeParse(
|
|
166
160
|
jsonString,
|
|
167
|
-
(x) =>
|
|
168
|
-
`Failed to parse '
|
|
161
|
+
(x) => Settings$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'Settings' from JSON`,
|
|
169
163
|
);
|
|
170
164
|
}
|
|
171
165
|
|
|
@@ -176,15 +170,14 @@ export const ConnectionImportData$inboundSchema: z.ZodType<
|
|
|
176
170
|
unknown
|
|
177
171
|
> = z.object({
|
|
178
172
|
credentials: z.lazy(() => Credentials$inboundSchema).optional(),
|
|
179
|
-
settings: z.nullable(z.lazy(() =>
|
|
180
|
-
.optional(),
|
|
173
|
+
settings: z.nullable(z.lazy(() => Settings$inboundSchema)).optional(),
|
|
181
174
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
182
175
|
});
|
|
183
176
|
|
|
184
177
|
/** @internal */
|
|
185
178
|
export type ConnectionImportData$Outbound = {
|
|
186
179
|
credentials?: Credentials$Outbound | undefined;
|
|
187
|
-
settings?:
|
|
180
|
+
settings?: Settings$Outbound | null | undefined;
|
|
188
181
|
metadata?: { [k: string]: any } | null | undefined;
|
|
189
182
|
};
|
|
190
183
|
|
|
@@ -195,9 +188,7 @@ export const ConnectionImportData$outboundSchema: z.ZodType<
|
|
|
195
188
|
ConnectionImportData
|
|
196
189
|
> = z.object({
|
|
197
190
|
credentials: z.lazy(() => Credentials$outboundSchema).optional(),
|
|
198
|
-
settings: z.nullable(
|
|
199
|
-
z.lazy(() => ConnectionImportDataSettings$outboundSchema),
|
|
200
|
-
).optional(),
|
|
191
|
+
settings: z.nullable(z.lazy(() => Settings$outboundSchema)).optional(),
|
|
201
192
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
202
193
|
});
|
|
203
194
|
|
|
@@ -18,11 +18,6 @@ import {
|
|
|
18
18
|
ConnectionState$outboundSchema,
|
|
19
19
|
} from "./connectionstate.js";
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
23
|
-
*/
|
|
24
|
-
export type Settings = {};
|
|
25
|
-
|
|
26
21
|
export type ConsumerConnection = {
|
|
27
22
|
id?: string | undefined;
|
|
28
23
|
name?: string | undefined;
|
|
@@ -41,7 +36,7 @@ export type ConsumerConnection = {
|
|
|
41
36
|
/**
|
|
42
37
|
* Connection settings. Values will persist to `form_fields` with corresponding id
|
|
43
38
|
*/
|
|
44
|
-
settings?:
|
|
39
|
+
settings?: { [k: string]: any } | null | undefined;
|
|
45
40
|
/**
|
|
46
41
|
* Attach your own consumer specific metadata
|
|
47
42
|
*/
|
|
@@ -54,50 +49,6 @@ export type ConsumerConnection = {
|
|
|
54
49
|
state?: ConnectionState | undefined;
|
|
55
50
|
};
|
|
56
51
|
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const Settings$inboundSchema: z.ZodType<
|
|
59
|
-
Settings,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
unknown
|
|
62
|
-
> = z.object({});
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export type Settings$Outbound = {};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const Settings$outboundSchema: z.ZodType<
|
|
69
|
-
Settings$Outbound,
|
|
70
|
-
z.ZodTypeDef,
|
|
71
|
-
Settings
|
|
72
|
-
> = z.object({});
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export namespace Settings$ {
|
|
79
|
-
/** @deprecated use `Settings$inboundSchema` instead. */
|
|
80
|
-
export const inboundSchema = Settings$inboundSchema;
|
|
81
|
-
/** @deprecated use `Settings$outboundSchema` instead. */
|
|
82
|
-
export const outboundSchema = Settings$outboundSchema;
|
|
83
|
-
/** @deprecated use `Settings$Outbound` instead. */
|
|
84
|
-
export type Outbound = Settings$Outbound;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function settingsToJSON(settings: Settings): string {
|
|
88
|
-
return JSON.stringify(Settings$outboundSchema.parse(settings));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function settingsFromJSON(
|
|
92
|
-
jsonString: string,
|
|
93
|
-
): SafeParseResult<Settings, SDKValidationError> {
|
|
94
|
-
return safeParse(
|
|
95
|
-
jsonString,
|
|
96
|
-
(x) => Settings$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
-
`Failed to parse 'Settings' from JSON`,
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
52
|
/** @internal */
|
|
102
53
|
export const ConsumerConnection$inboundSchema: z.ZodType<
|
|
103
54
|
ConsumerConnection,
|
|
@@ -115,7 +66,7 @@ export const ConsumerConnection$inboundSchema: z.ZodType<
|
|
|
115
66
|
consumer_id: z.string().optional(),
|
|
116
67
|
auth_type: AuthType$inboundSchema.optional(),
|
|
117
68
|
enabled: z.boolean().optional(),
|
|
118
|
-
settings: z.nullable(z.
|
|
69
|
+
settings: z.nullable(z.record(z.any())).optional(),
|
|
119
70
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
120
71
|
created_at: z.string().optional(),
|
|
121
72
|
updated_at: z.nullable(z.string()).optional(),
|
|
@@ -145,7 +96,7 @@ export type ConsumerConnection$Outbound = {
|
|
|
145
96
|
consumer_id?: string | undefined;
|
|
146
97
|
auth_type?: string | undefined;
|
|
147
98
|
enabled?: boolean | undefined;
|
|
148
|
-
settings?:
|
|
99
|
+
settings?: { [k: string]: any } | null | undefined;
|
|
149
100
|
metadata?: { [k: string]: any } | null | undefined;
|
|
150
101
|
created_at?: string | undefined;
|
|
151
102
|
updated_at?: string | null | undefined;
|
|
@@ -169,7 +120,7 @@ export const ConsumerConnection$outboundSchema: z.ZodType<
|
|
|
169
120
|
consumerId: z.string().optional(),
|
|
170
121
|
authType: AuthType$outboundSchema.optional(),
|
|
171
122
|
enabled: z.boolean().optional(),
|
|
172
|
-
settings: z.nullable(z.
|
|
123
|
+
settings: z.nullable(z.record(z.any())).optional(),
|
|
173
124
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
174
125
|
createdAt: z.string().optional(),
|
|
175
126
|
updatedAt: z.nullable(z.string()).optional(),
|