@seamapi/http 1.102.0 → 1.105.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/README.md +0 -1
- package/dist/connect.cjs +601 -235
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +184 -52
- package/dist/index.cjs +609 -239
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +13 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +9 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +2 -0
- package/lib/seam/connect/routes/customers/customers.js +4 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/customers/index.js +1 -0
- package/lib/seam/connect/routes/customers/index.js.map +1 -1
- package/lib/seam/connect/routes/customers/reservations/index.d.ts +1 -0
- package/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.js +1 -2
- package/lib/seam/connect/routes/customers/reservations/index.js.map +1 -0
- package/lib/seam/connect/routes/{seam/v1/v1.d.ts → customers/reservations/reservations.d.ts} +23 -10
- package/lib/seam/connect/routes/{seam/v1/v1.js → customers/reservations/reservations.js} +18 -12
- package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.d.ts +33 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.d.ts +14 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/{v1/customers/customers.d.ts → customer/v1/encoders/encoders.d.ts} +20 -20
- package/lib/seam/connect/routes/seam/{v1/customers/customers.js → customer/v1/encoders/encoders.js} +26 -20
- package/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.js +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +8 -3
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/index.js +0 -1
- package/lib/seam/connect/routes/seam/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +19 -9
- package/lib/seam/connect/routes/seam-http-endpoints.js +72 -8
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -6
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +35 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +8 -4
- package/src/lib/seam/connect/routes/customers/customers.ts +6 -0
- package/src/lib/seam/connect/routes/customers/index.ts +1 -0
- package/src/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.ts +1 -2
- package/src/lib/seam/connect/routes/{seam/v1/customers/customers.ts → customers/reservations/reservations.ts} +33 -29
- package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts +41 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts +217 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +38 -6
- package/src/lib/seam/connect/routes/seam/{v1/v1.ts → customer/v1/encoders/encoders.ts} +62 -19
- package/src/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.ts +1 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +2 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +9 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts +228 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +36 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +13 -5
- package/src/lib/seam/connect/routes/seam/index.ts +0 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +182 -21
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/seam/v1/customers/customers.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/index.d.ts +0 -2
- package/lib/seam/connect/routes/seam/v1/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/v1.js.map +0 -1
|
@@ -19,6 +19,7 @@ export declare class SeamHttpSeamCustomerV1AccessGrants {
|
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
21
|
list(parameters?: SeamCustomerV1AccessGrantsListParameters, options?: SeamCustomerV1AccessGrantsListOptions): SeamCustomerV1AccessGrantsListRequest;
|
|
22
|
+
update(parameters?: SeamCustomerV1AccessGrantsUpdateParameters, options?: SeamCustomerV1AccessGrantsUpdateOptions): SeamCustomerV1AccessGrantsUpdateRequest;
|
|
22
23
|
}
|
|
23
24
|
export type SeamCustomerV1AccessGrantsListParameters = RouteRequestBody<'/seam/customer/v1/access_grants/list'>;
|
|
24
25
|
/**
|
|
@@ -32,3 +33,15 @@ export type SeamCustomerV1AccessGrantsListResponse = SetNonNullable<Required<Rou
|
|
|
32
33
|
export type SeamCustomerV1AccessGrantsListRequest = SeamHttpRequest<SeamCustomerV1AccessGrantsListResponse, 'access_grants'>;
|
|
33
34
|
export interface SeamCustomerV1AccessGrantsListOptions {
|
|
34
35
|
}
|
|
36
|
+
export type SeamCustomerV1AccessGrantsUpdateParameters = RouteRequestBody<'/seam/customer/v1/access_grants/update'>;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Use SeamCustomerV1AccessGrantsUpdateParameters instead.
|
|
39
|
+
*/
|
|
40
|
+
export type SeamCustomerV1AccessGrantsUpdateBody = SeamCustomerV1AccessGrantsUpdateParameters;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Use SeamCustomerV1AccessGrantsUpdateRequest instead.
|
|
43
|
+
*/
|
|
44
|
+
export type SeamCustomerV1AccessGrantsUpdateResponse = SetNonNullable<Required<RouteResponse<'/seam/customer/v1/access_grants/update'>>>;
|
|
45
|
+
export type SeamCustomerV1AccessGrantsUpdateRequest = SeamHttpRequest<void, undefined>;
|
|
46
|
+
export interface SeamCustomerV1AccessGrantsUpdateOptions {
|
|
47
|
+
}
|
|
@@ -100,5 +100,17 @@ export class SeamHttpSeamCustomerV1AccessGrants {
|
|
|
100
100
|
options,
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
+
update(parameters, options = {}) {
|
|
104
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
105
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
106
|
+
}
|
|
107
|
+
return new SeamHttpRequest(this, {
|
|
108
|
+
pathname: '/seam/customer/v1/access_grants/update',
|
|
109
|
+
method: 'PATCH',
|
|
110
|
+
body: parameters,
|
|
111
|
+
responseKey: undefined,
|
|
112
|
+
options,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
103
115
|
}
|
|
104
116
|
//# sourceMappingURL=access-grants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-grants.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,kCAAkC;IAC7C,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,IAAI,CAAC,MAAM,GAAG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eAAe,CACb,OAAiD;QAEjD,OAAO,IAAI,aAAa,CAA0B,IAAI,EAAE,OAAO,CAAC,CAAA;IAClE,CAAC;IAED,KAAK,CAAC,wBAAwB,CAC5B,kBAA+E;QAE/E,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAA;QACxC,MAAM,WAAW,GAAG,mCAAmC,CAAC;YACtD,kBAAkB;SACnB,CAAC,CAAA;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC3C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,IAAI,CACF,UAAqD,EACrD,UAAiD,EAAE;QAEnD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,sCAAsC;YAChD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"access-grants.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,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AI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,IAAI,CACF,UAAqD,EACrD,UAAiD,EAAE;QAEnD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,sCAAsC;YAChD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,eAAe;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CACJ,UAAuD,EACvD,UAAmD,EAAE;QAErD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,wCAAwC;YAClD,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import { type Client } from '../../../../../../../../lib/seam/connect/client.js';
|
|
3
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../../../../lib/seam/connect/options.js';
|
|
4
|
+
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
+
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
+
import type { SetNonNullable } from '../../../../../../../../lib/types.js';
|
|
7
|
+
export declare class SeamHttpSeamCustomerV1AccessMethods {
|
|
8
|
+
client: Client;
|
|
9
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
|
+
readonly ltsVersion = "1.0.0";
|
|
11
|
+
static ltsVersion: string;
|
|
12
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
13
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpSeamCustomerV1AccessMethods;
|
|
14
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpSeamCustomerV1AccessMethods;
|
|
15
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpSeamCustomerV1AccessMethods;
|
|
16
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpSeamCustomerV1AccessMethods>;
|
|
17
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpSeamCustomerV1AccessMethods;
|
|
18
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSeamCustomerV1AccessMethods;
|
|
19
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
+
encode(parameters?: SeamCustomerV1AccessMethodsEncodeParameters, options?: SeamCustomerV1AccessMethodsEncodeOptions): SeamCustomerV1AccessMethodsEncodeRequest;
|
|
22
|
+
}
|
|
23
|
+
export type SeamCustomerV1AccessMethodsEncodeParameters = RouteRequestBody<'/seam/customer/v1/access_methods/encode'>;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use SeamCustomerV1AccessMethodsEncodeParameters instead.
|
|
26
|
+
*/
|
|
27
|
+
export type SeamCustomerV1AccessMethodsEncodeBody = SeamCustomerV1AccessMethodsEncodeParameters;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Use SeamCustomerV1AccessMethodsEncodeRequest instead.
|
|
30
|
+
*/
|
|
31
|
+
export type SeamCustomerV1AccessMethodsEncodeResponse = SetNonNullable<Required<RouteResponse<'/seam/customer/v1/access_methods/encode'>>>;
|
|
32
|
+
export type SeamCustomerV1AccessMethodsEncodeRequest = SeamHttpRequest<SeamCustomerV1AccessMethodsEncodeResponse, 'action_attempt'>;
|
|
33
|
+
export type SeamCustomerV1AccessMethodsEncodeOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { seamApiLtsVersion } from '../../../../../../../../lib/lts-version.js';
|
|
6
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../../../../../lib/seam/connect/auth.js';
|
|
7
|
+
import { createClient } from '../../../../../../../../lib/seam/connect/client.js';
|
|
8
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../../../../../lib/seam/connect/options.js';
|
|
9
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../../../../lib/seam/connect/parse-options.js';
|
|
10
|
+
import { SeamHttpClientSessions } from '../../../../../../../../lib/seam/connect/routes/client-sessions/index.js';
|
|
11
|
+
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
12
|
+
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
13
|
+
export class SeamHttpSeamCustomerV1AccessMethods {
|
|
14
|
+
client;
|
|
15
|
+
defaults;
|
|
16
|
+
ltsVersion = seamApiLtsVersion;
|
|
17
|
+
static ltsVersion = seamApiLtsVersion;
|
|
18
|
+
constructor(apiKeyOrOptions = {}) {
|
|
19
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
20
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
21
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
22
|
+
}
|
|
23
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
24
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
25
|
+
}
|
|
26
|
+
static fromClient(client, options = {}) {
|
|
27
|
+
const constructorOptions = { ...options, client };
|
|
28
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
29
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
30
|
+
}
|
|
31
|
+
return new SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
32
|
+
}
|
|
33
|
+
static fromApiKey(apiKey, options = {}) {
|
|
34
|
+
const constructorOptions = { ...options, apiKey };
|
|
35
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
36
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
37
|
+
}
|
|
38
|
+
return new SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
39
|
+
}
|
|
40
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
41
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
42
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
43
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
44
|
+
}
|
|
45
|
+
return new SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
46
|
+
}
|
|
47
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
48
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
49
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
50
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
51
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpSeamCustomerV1AccessMethods.fromPublishableKey');
|
|
52
|
+
}
|
|
53
|
+
const client = createClient(clientOptions);
|
|
54
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
55
|
+
const { token } = await clientSessions.getOrCreate({
|
|
56
|
+
user_identifier_key: userIdentifierKey,
|
|
57
|
+
});
|
|
58
|
+
return SeamHttpSeamCustomerV1AccessMethods.fromClientSessionToken(token, options);
|
|
59
|
+
}
|
|
60
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
61
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
62
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
63
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
64
|
+
}
|
|
65
|
+
return new SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
66
|
+
}
|
|
67
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
68
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
69
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
70
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
71
|
+
}
|
|
72
|
+
return new SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
73
|
+
}
|
|
74
|
+
createPaginator(request) {
|
|
75
|
+
return new SeamPaginator(this, request);
|
|
76
|
+
}
|
|
77
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
78
|
+
const { headers } = this.client.defaults;
|
|
79
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
80
|
+
clientSessionToken,
|
|
81
|
+
});
|
|
82
|
+
for (const key of Object.keys(authHeaders)) {
|
|
83
|
+
if (headers[key] == null) {
|
|
84
|
+
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
88
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
89
|
+
await clientSessions.get();
|
|
90
|
+
}
|
|
91
|
+
encode(parameters, options = {}) {
|
|
92
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
93
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
94
|
+
}
|
|
95
|
+
return new SeamHttpRequest(this, {
|
|
96
|
+
pathname: '/seam/customer/v1/access_methods/encode',
|
|
97
|
+
method: 'POST',
|
|
98
|
+
body: parameters,
|
|
99
|
+
responseKey: 'action_attempt',
|
|
100
|
+
options,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=access-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,mCAAmC;IAC9C,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,I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AwB,CAC5B,kBAA+E;QAE/E,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAA;QACxC,MAAM,WAAW,GAAG,mCAAmC,CAAC;YACtD,kBAAkB;SACnB,CAAC,CAAA;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC3C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAA;YACH,CAAC;QACH,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,MAAM,CACJ,UAAwD,EACxD,UAAoD,EAAE;QAEtD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yCAAyC;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './access-methods.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/access-methods/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,qBAAqB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
1
|
+
import type { RouteRequestBody, RouteRequestParams, RouteResponse } from '@seamapi/types/connect';
|
|
2
2
|
import { type Client } from '../../../../../../../../lib/seam/connect/client.js';
|
|
3
3
|
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../../../../lib/seam/connect/options.js';
|
|
4
4
|
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
@@ -19,6 +19,7 @@ export declare class SeamHttpSeamCustomerV1Customers {
|
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
21
|
list(parameters?: SeamCustomerV1CustomersListParameters, options?: SeamCustomerV1CustomersListOptions): SeamCustomerV1CustomersListRequest;
|
|
22
|
+
me(parameters?: SeamCustomerV1CustomersMeParameters, options?: SeamCustomerV1CustomersMeOptions): SeamCustomerV1CustomersMeRequest;
|
|
22
23
|
openPortal(parameters?: SeamCustomerV1CustomersOpenPortalParameters, options?: SeamCustomerV1CustomersOpenPortalOptions): SeamCustomerV1CustomersOpenPortalRequest;
|
|
23
24
|
}
|
|
24
25
|
export type SeamCustomerV1CustomersListParameters = RouteRequestBody<'/seam/customer/v1/customers/list'>;
|
|
@@ -33,6 +34,18 @@ export type SeamCustomerV1CustomersListResponse = SetNonNullable<Required<RouteR
|
|
|
33
34
|
export type SeamCustomerV1CustomersListRequest = SeamHttpRequest<SeamCustomerV1CustomersListResponse, 'customers'>;
|
|
34
35
|
export interface SeamCustomerV1CustomersListOptions {
|
|
35
36
|
}
|
|
37
|
+
export type SeamCustomerV1CustomersMeParameters = RouteRequestParams<'/seam/customer/v1/customers/me'>;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use SeamCustomerV1CustomersMeParameters instead.
|
|
40
|
+
*/
|
|
41
|
+
export type SeamCustomerV1CustomersMeParams = SeamCustomerV1CustomersMeParameters;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use SeamCustomerV1CustomersMeRequest instead.
|
|
44
|
+
*/
|
|
45
|
+
export type SeamCustomerV1CustomersMeResponse = SetNonNullable<Required<RouteResponse<'/seam/customer/v1/customers/me'>>>;
|
|
46
|
+
export type SeamCustomerV1CustomersMeRequest = SeamHttpRequest<void, undefined>;
|
|
47
|
+
export interface SeamCustomerV1CustomersMeOptions {
|
|
48
|
+
}
|
|
36
49
|
export type SeamCustomerV1CustomersOpenPortalParameters = RouteRequestBody<'/seam/customer/v1/customers/open_portal'>;
|
|
37
50
|
/**
|
|
38
51
|
* @deprecated Use SeamCustomerV1CustomersOpenPortalParameters instead.
|
|
@@ -17,9 +17,6 @@ export class SeamHttpSeamCustomerV1Customers {
|
|
|
17
17
|
static ltsVersion = seamApiLtsVersion;
|
|
18
18
|
constructor(apiKeyOrOptions = {}) {
|
|
19
19
|
const options = parseOptions(apiKeyOrOptions);
|
|
20
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
21
|
-
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
22
|
-
}
|
|
23
20
|
this.client = 'client' in options ? options.client : createClient(options);
|
|
24
21
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
25
22
|
}
|
|
@@ -100,6 +97,15 @@ export class SeamHttpSeamCustomerV1Customers {
|
|
|
100
97
|
options,
|
|
101
98
|
});
|
|
102
99
|
}
|
|
100
|
+
me(parameters, options = {}) {
|
|
101
|
+
return new SeamHttpRequest(this, {
|
|
102
|
+
pathname: '/seam/customer/v1/customers/me',
|
|
103
|
+
method: 'GET',
|
|
104
|
+
params: parameters,
|
|
105
|
+
responseKey: undefined,
|
|
106
|
+
options,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
103
109
|
openPortal(parameters, options = {}) {
|
|
104
110
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
105
111
|
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,MAAM,OAAO,+BAA+B;IAC1C,MAAM,CAAQ;IACL,QAAQ,CAAkC;IAC1C,UAAU,GAAG,iBAAiB,CAAA;IACvC,MAAM,CAAC,UAAU,GAAG,iBAAiB,CAAA;IAErC,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;Q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MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,UAAU,CACR,UAAwD,EACxD,UAAoD,EAAE;QAEtD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yCAAyC;YACnD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,YAAY;YACzB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
-
import { type Client } from '
|
|
3
|
-
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '
|
|
4
|
-
import { SeamHttpRequest } from '
|
|
5
|
-
import { SeamPaginator } from '
|
|
6
|
-
import type { SetNonNullable } from '
|
|
7
|
-
export declare class
|
|
2
|
+
import { type Client } from '../../../../../../../../lib/seam/connect/client.js';
|
|
3
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../../../../../lib/seam/connect/options.js';
|
|
4
|
+
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
+
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
+
import type { SetNonNullable } from '../../../../../../../../lib/types.js';
|
|
7
|
+
export declare class SeamHttpSeamCustomerV1Encoders {
|
|
8
8
|
client: Client;
|
|
9
9
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
10
|
readonly ltsVersion = "1.0.0";
|
|
11
11
|
static ltsVersion: string;
|
|
12
12
|
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
13
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>):
|
|
14
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>):
|
|
15
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>):
|
|
16
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<
|
|
17
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>):
|
|
18
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>):
|
|
13
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpSeamCustomerV1Encoders;
|
|
14
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpSeamCustomerV1Encoders;
|
|
15
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpSeamCustomerV1Encoders;
|
|
16
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpSeamCustomerV1Encoders>;
|
|
17
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpSeamCustomerV1Encoders;
|
|
18
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSeamCustomerV1Encoders;
|
|
19
19
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
20
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
21
|
-
|
|
21
|
+
list(parameters?: SeamCustomerV1EncodersListParameters, options?: SeamCustomerV1EncodersListOptions): SeamCustomerV1EncodersListRequest;
|
|
22
22
|
}
|
|
23
|
-
export type
|
|
23
|
+
export type SeamCustomerV1EncodersListParameters = RouteRequestBody<'/seam/customer/v1/encoders/list'>;
|
|
24
24
|
/**
|
|
25
|
-
* @deprecated Use
|
|
25
|
+
* @deprecated Use SeamCustomerV1EncodersListParameters instead.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type SeamCustomerV1EncodersListParams = SeamCustomerV1EncodersListParameters;
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated Use
|
|
29
|
+
* @deprecated Use SeamCustomerV1EncodersListRequest instead.
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
32
|
-
export type
|
|
33
|
-
export interface
|
|
31
|
+
export type SeamCustomerV1EncodersListResponse = SetNonNullable<Required<RouteResponse<'/seam/customer/v1/encoders/list'>>>;
|
|
32
|
+
export type SeamCustomerV1EncodersListRequest = SeamHttpRequest<SeamCustomerV1EncodersListResponse, 'encoders'>;
|
|
33
|
+
export interface SeamCustomerV1EncodersListOptions {
|
|
34
34
|
}
|
package/lib/seam/connect/routes/seam/{v1/customers/customers.js → customer/v1/encoders/encoders.js}
RENAMED
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
* Automatically generated by codegen/smith.ts.
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
|
-
import { seamApiLtsVersion } from '
|
|
6
|
-
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '
|
|
7
|
-
import { createClient } from '
|
|
8
|
-
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '
|
|
9
|
-
import { limitToSeamHttpRequestOptions, parseOptions, } from '
|
|
10
|
-
import { SeamHttpClientSessions } from '
|
|
11
|
-
import { SeamHttpRequest } from '
|
|
12
|
-
import { SeamPaginator } from '
|
|
13
|
-
export class
|
|
5
|
+
import { seamApiLtsVersion } from '../../../../../../../../lib/lts-version.js';
|
|
6
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../../../../../lib/seam/connect/auth.js';
|
|
7
|
+
import { createClient } from '../../../../../../../../lib/seam/connect/client.js';
|
|
8
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../../../../../lib/seam/connect/options.js';
|
|
9
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../../../../lib/seam/connect/parse-options.js';
|
|
10
|
+
import { SeamHttpClientSessions } from '../../../../../../../../lib/seam/connect/routes/client-sessions/index.js';
|
|
11
|
+
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
12
|
+
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
13
|
+
export class SeamHttpSeamCustomerV1Encoders {
|
|
14
14
|
client;
|
|
15
15
|
defaults;
|
|
16
16
|
ltsVersion = seamApiLtsVersion;
|
|
17
17
|
static ltsVersion = seamApiLtsVersion;
|
|
18
18
|
constructor(apiKeyOrOptions = {}) {
|
|
19
19
|
const options = parseOptions(apiKeyOrOptions);
|
|
20
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
21
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
22
|
+
}
|
|
20
23
|
this.client = 'client' in options ? options.client : createClient(options);
|
|
21
24
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
22
25
|
}
|
|
@@ -25,48 +28,48 @@ export class SeamHttpSeamV1Customers {
|
|
|
25
28
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
26
29
|
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
27
30
|
}
|
|
28
|
-
return new
|
|
31
|
+
return new SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
29
32
|
}
|
|
30
33
|
static fromApiKey(apiKey, options = {}) {
|
|
31
34
|
const constructorOptions = { ...options, apiKey };
|
|
32
35
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
33
36
|
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
34
37
|
}
|
|
35
|
-
return new
|
|
38
|
+
return new SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
36
39
|
}
|
|
37
40
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
38
41
|
const constructorOptions = { ...options, clientSessionToken };
|
|
39
42
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
40
43
|
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
41
44
|
}
|
|
42
|
-
return new
|
|
45
|
+
return new SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
43
46
|
}
|
|
44
47
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
45
48
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
46
49
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
47
50
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
48
|
-
throw new SeamHttpInvalidOptionsError('The client option cannot be used with
|
|
51
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttpSeamCustomerV1Encoders.fromPublishableKey');
|
|
49
52
|
}
|
|
50
53
|
const client = createClient(clientOptions);
|
|
51
54
|
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
52
55
|
const { token } = await clientSessions.getOrCreate({
|
|
53
56
|
user_identifier_key: userIdentifierKey,
|
|
54
57
|
});
|
|
55
|
-
return
|
|
58
|
+
return SeamHttpSeamCustomerV1Encoders.fromClientSessionToken(token, options);
|
|
56
59
|
}
|
|
57
60
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
58
61
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
59
62
|
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
60
63
|
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
61
64
|
}
|
|
62
|
-
return new
|
|
65
|
+
return new SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
63
66
|
}
|
|
64
67
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
65
68
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
66
69
|
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
67
70
|
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
68
71
|
}
|
|
69
|
-
return new
|
|
72
|
+
return new SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
70
73
|
}
|
|
71
74
|
createPaginator(request) {
|
|
72
75
|
return new SeamPaginator(this, request);
|
|
@@ -85,14 +88,17 @@ export class SeamHttpSeamV1Customers {
|
|
|
85
88
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
86
89
|
await clientSessions.get();
|
|
87
90
|
}
|
|
88
|
-
|
|
91
|
+
list(parameters, options = {}) {
|
|
92
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
93
|
+
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|
|
94
|
+
}
|
|
89
95
|
return new SeamHttpRequest(this, {
|
|
90
|
-
pathname: '/seam/v1/
|
|
96
|
+
pathname: '/seam/customer/v1/encoders/list',
|
|
91
97
|
method: 'POST',
|
|
92
98
|
body: parameters,
|
|
93
|
-
responseKey:
|
|
99
|
+
responseKey: 'encoders',
|
|
94
100
|
options,
|
|
95
101
|
});
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
|
-
//# sourceMappingURL=
|
|
104
|
+
//# sourceMappingURL=encoders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encoders.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,E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O,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;QAC7D,MAAM,cAAc,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,IAAI,CACF,UAAiD,EACjD,UAA6C,EAAE;QAE/C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAA;QACH,CAAC;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,iCAAiC;YAC3C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,UAAU;YACvB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './encoders.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/encoders/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './access-grants/index.js';
|
|
2
|
+
export * from './access-methods/index.js';
|
|
2
3
|
export * from './automation-runs/index.js';
|
|
3
4
|
export * from './automations/index.js';
|
|
4
5
|
export * from './connector-customers/index.js';
|
|
5
6
|
export * from './connectors/index.js';
|
|
6
7
|
export * from './customers/index.js';
|
|
8
|
+
export * from './encoders/index.js';
|
|
7
9
|
export * from './events/index.js';
|
|
8
10
|
export * from './portals/index.js';
|
|
9
11
|
export * from './reservations/index.js';
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
export * from './access-grants/index.js';
|
|
6
|
+
export * from './access-methods/index.js';
|
|
6
7
|
export * from './automation-runs/index.js';
|
|
7
8
|
export * from './automations/index.js';
|
|
8
9
|
export * from './connector-customers/index.js';
|
|
9
10
|
export * from './connectors/index.js';
|
|
10
11
|
export * from './customers/index.js';
|
|
12
|
+
export * from './encoders/index.js';
|
|
11
13
|
export * from './events/index.js';
|
|
12
14
|
export * from './portals/index.js';
|
|
13
15
|
export * from './reservations/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,SAAS,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAA;AAC7B,cAAc,sCAAsC,CAAA"}
|
|
@@ -4,6 +4,7 @@ import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type Seam
|
|
|
4
4
|
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
5
5
|
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
6
6
|
import type { SetNonNullable } from '../../../../../../../../lib/types.js';
|
|
7
|
+
import { SeamHttpSeamCustomerV1SettingsVerticalResourceAliases } from './vertical-resource-aliases/index.js';
|
|
7
8
|
export declare class SeamHttpSeamCustomerV1Settings {
|
|
8
9
|
client: Client;
|
|
9
10
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -18,6 +19,7 @@ export declare class SeamHttpSeamCustomerV1Settings {
|
|
|
18
19
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSeamCustomerV1Settings;
|
|
19
20
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
20
21
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
22
|
+
get verticalResourceAliases(): SeamHttpSeamCustomerV1SettingsVerticalResourceAliases;
|
|
21
23
|
get(parameters?: SeamCustomerV1SettingsGetParameters, options?: SeamCustomerV1SettingsGetOptions): SeamCustomerV1SettingsGetRequest;
|
|
22
24
|
update(parameters?: SeamCustomerV1SettingsUpdateParameters, options?: SeamCustomerV1SettingsUpdateOptions): SeamCustomerV1SettingsUpdateRequest;
|
|
23
25
|
}
|
|
@@ -10,6 +10,7 @@ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../../
|
|
|
10
10
|
import { SeamHttpClientSessions } from '../../../../../../../../lib/seam/connect/routes/client-sessions/index.js';
|
|
11
11
|
import { SeamHttpRequest } from '../../../../../../../../lib/seam/connect/seam-http-request.js';
|
|
12
12
|
import { SeamPaginator } from '../../../../../../../../lib/seam/connect/seam-paginator.js';
|
|
13
|
+
import { SeamHttpSeamCustomerV1SettingsVerticalResourceAliases } from './vertical-resource-aliases/index.js';
|
|
13
14
|
export class SeamHttpSeamCustomerV1Settings {
|
|
14
15
|
client;
|
|
15
16
|
defaults;
|
|
@@ -88,6 +89,9 @@ export class SeamHttpSeamCustomerV1Settings {
|
|
|
88
89
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
89
90
|
await clientSessions.get();
|
|
90
91
|
}
|
|
92
|
+
get verticalResourceAliases() {
|
|
93
|
+
return SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClient(this.client, this.defaults);
|
|
94
|
+
}
|
|
91
95
|
get(parameters, options = {}) {
|
|
92
96
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
93
97
|
throw new Error('Cannot use undocumented API without isUndocumentedApiEnabled');
|