@seamapi/http 1.93.0 → 1.95.0
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/dist/connect.cjs +38 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +19 -4
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +3 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +11 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +4 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +10 -0
- 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 +3 -3
- package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +41 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +27 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +23 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -6416,6 +6416,20 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
|
|
|
6416
6416
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6417
6417
|
await clientSessions.get();
|
|
6418
6418
|
}
|
|
6419
|
+
authorize(parameters, options = {}) {
|
|
6420
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6421
|
+
throw new Error(
|
|
6422
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6423
|
+
);
|
|
6424
|
+
}
|
|
6425
|
+
return new SeamHttpRequest(this, {
|
|
6426
|
+
pathname: "/seam/customer/v1/connectors/authorize",
|
|
6427
|
+
method: "POST",
|
|
6428
|
+
body: parameters,
|
|
6429
|
+
responseKey: "connector_authorize",
|
|
6430
|
+
options
|
|
6431
|
+
});
|
|
6432
|
+
}
|
|
6419
6433
|
connectorTypes(parameters, options = {}) {
|
|
6420
6434
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6421
6435
|
throw new Error(
|
|
@@ -10911,6 +10925,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10911
10925
|
return seam.update(...args);
|
|
10912
10926
|
};
|
|
10913
10927
|
}
|
|
10928
|
+
get "/seam/customer/v1/connectors/authorize"() {
|
|
10929
|
+
const { client, defaults } = this;
|
|
10930
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10931
|
+
throw new Error(
|
|
10932
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10933
|
+
);
|
|
10934
|
+
}
|
|
10935
|
+
return function seamCustomerV1ConnectorsAuthorize(...args) {
|
|
10936
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
10937
|
+
return seam.authorize(...args);
|
|
10938
|
+
};
|
|
10939
|
+
}
|
|
10914
10940
|
get "/seam/customer/v1/connectors/connector_types"() {
|
|
10915
10941
|
const { client, defaults } = this;
|
|
10916
10942
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11823,6 +11849,18 @@ var SeamHttpEndpointsWithoutWorkspace = class _SeamHttpEndpointsWithoutWorkspace
|
|
|
11823
11849
|
}
|
|
11824
11850
|
return new _SeamHttpEndpointsWithoutWorkspace(constructorOptions);
|
|
11825
11851
|
}
|
|
11852
|
+
get "/seam/customer/v1/connectors/authorize"() {
|
|
11853
|
+
const { client, defaults } = this;
|
|
11854
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11855
|
+
throw new Error(
|
|
11856
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11857
|
+
);
|
|
11858
|
+
}
|
|
11859
|
+
return function seamCustomerV1ConnectorsAuthorize(...args) {
|
|
11860
|
+
const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
|
|
11861
|
+
return seam.authorize(...args);
|
|
11862
|
+
};
|
|
11863
|
+
}
|
|
11826
11864
|
get "/workspaces/create"() {
|
|
11827
11865
|
const { client, defaults } = this;
|
|
11828
11866
|
return function workspacesCreate(...args) {
|