@seamapi/http 1.83.0 → 1.84.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 +0 -119
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2 -32
- package/dist/index.cjs +0 -121
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.js +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +1 -3
- package/lib/seam/connect/routes/seam-http-endpoints.js +0 -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 +3 -3
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +0 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +0 -28
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.js +0 -6
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.js +0 -6
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.d.ts +0 -34
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.js +0 -98
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.js.map +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/index.js +0 -6
- package/lib/seam/connect/routes/seam/customer/v1/webhooks/index.js.map +0 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/index.ts +0 -6
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/index.ts +0 -6
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.ts +0 -216
- package/src/lib/seam/connect/routes/seam/customer/v1/webhooks/index.ts +0 -6
package/dist/connect.cjs
CHANGED
|
@@ -7010,114 +7010,6 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7010
7010
|
}
|
|
7011
7011
|
};
|
|
7012
7012
|
|
|
7013
|
-
// src/lib/seam/connect/routes/seam/customer/v1/webhooks/connectors/workspace-id/workspace-id.ts
|
|
7014
|
-
var SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = class _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId {
|
|
7015
|
-
client;
|
|
7016
|
-
defaults;
|
|
7017
|
-
ltsVersion = seamApiLtsVersion;
|
|
7018
|
-
static ltsVersion = seamApiLtsVersion;
|
|
7019
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7020
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7021
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7022
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7023
|
-
}
|
|
7024
|
-
static fromClient(client, options = {}) {
|
|
7025
|
-
const constructorOptions = { ...options, client };
|
|
7026
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7027
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7028
|
-
}
|
|
7029
|
-
return new _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId(
|
|
7030
|
-
constructorOptions
|
|
7031
|
-
);
|
|
7032
|
-
}
|
|
7033
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7034
|
-
const constructorOptions = { ...options, apiKey };
|
|
7035
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7036
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7037
|
-
}
|
|
7038
|
-
return new _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId(
|
|
7039
|
-
constructorOptions
|
|
7040
|
-
);
|
|
7041
|
-
}
|
|
7042
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7043
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7044
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7045
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7046
|
-
}
|
|
7047
|
-
return new _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId(
|
|
7048
|
-
constructorOptions
|
|
7049
|
-
);
|
|
7050
|
-
}
|
|
7051
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7052
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7053
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7054
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7055
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7056
|
-
"The client option cannot be used with SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId.fromPublishableKey"
|
|
7057
|
-
);
|
|
7058
|
-
}
|
|
7059
|
-
const client = createClient(clientOptions);
|
|
7060
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7061
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7062
|
-
user_identifier_key: userIdentifierKey
|
|
7063
|
-
});
|
|
7064
|
-
return _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId.fromClientSessionToken(
|
|
7065
|
-
token,
|
|
7066
|
-
options
|
|
7067
|
-
);
|
|
7068
|
-
}
|
|
7069
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7070
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7071
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7072
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7073
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7074
|
-
);
|
|
7075
|
-
}
|
|
7076
|
-
return new _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId(
|
|
7077
|
-
constructorOptions
|
|
7078
|
-
);
|
|
7079
|
-
}
|
|
7080
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7081
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7082
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7083
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7084
|
-
"Missing personalAccessToken or workspaceId"
|
|
7085
|
-
);
|
|
7086
|
-
}
|
|
7087
|
-
return new _SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId(
|
|
7088
|
-
constructorOptions
|
|
7089
|
-
);
|
|
7090
|
-
}
|
|
7091
|
-
createPaginator(request) {
|
|
7092
|
-
return new SeamPaginator(this, request);
|
|
7093
|
-
}
|
|
7094
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7095
|
-
const { headers } = this.client.defaults;
|
|
7096
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7097
|
-
clientSessionToken
|
|
7098
|
-
});
|
|
7099
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7100
|
-
if (headers[key] == null) {
|
|
7101
|
-
throw new Error(
|
|
7102
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7103
|
-
);
|
|
7104
|
-
}
|
|
7105
|
-
}
|
|
7106
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7107
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7108
|
-
await clientSessions.get();
|
|
7109
|
-
}
|
|
7110
|
-
connectorId(parameters, options = {}) {
|
|
7111
|
-
return new SeamHttpRequest(this, {
|
|
7112
|
-
pathname: "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]",
|
|
7113
|
-
method: "POST",
|
|
7114
|
-
body: parameters,
|
|
7115
|
-
responseKey: void 0,
|
|
7116
|
-
options
|
|
7117
|
-
});
|
|
7118
|
-
}
|
|
7119
|
-
};
|
|
7120
|
-
|
|
7121
7013
|
// src/lib/seam/connect/routes/seam/partner/v1/building-blocks/spaces/spaces.ts
|
|
7122
7014
|
var SeamHttpSeamPartnerV1BuildingBlocksSpaces = class _SeamHttpSeamPartnerV1BuildingBlocksSpaces {
|
|
7123
7015
|
client;
|
|
@@ -10778,16 +10670,6 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10778
10670
|
return seam.list(...args);
|
|
10779
10671
|
};
|
|
10780
10672
|
}
|
|
10781
|
-
get "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]"() {
|
|
10782
|
-
const { client, defaults } = this;
|
|
10783
|
-
return function seamCustomerV1WebhooksConnectorsWorkspaceIdConnectorId(...args) {
|
|
10784
|
-
const seam = SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId.fromClient(
|
|
10785
|
-
client,
|
|
10786
|
-
defaults
|
|
10787
|
-
);
|
|
10788
|
-
return seam.connectorId(...args);
|
|
10789
|
-
};
|
|
10790
|
-
}
|
|
10791
10673
|
get "/seam/partner/v1/building_blocks/spaces/auto_map"() {
|
|
10792
10674
|
const { client, defaults } = this;
|
|
10793
10675
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11609,7 +11491,6 @@ exports.SeamHttpSeamCustomerV1Reservations = SeamHttpSeamCustomerV1Reservations;
|
|
|
11609
11491
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
11610
11492
|
exports.SeamHttpSeamCustomerV1Spaces = SeamHttpSeamCustomerV1Spaces;
|
|
11611
11493
|
exports.SeamHttpSeamCustomerV1StaffMembers = SeamHttpSeamCustomerV1StaffMembers;
|
|
11612
|
-
exports.SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId = SeamHttpSeamCustomerV1WebhooksConnectorsWorkspaceId;
|
|
11613
11494
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|
|
11614
11495
|
exports.SeamHttpSeamPartnerV1BuildingBlocksSpaces = SeamHttpSeamPartnerV1BuildingBlocksSpaces;
|
|
11615
11496
|
exports.SeamHttpSpaces = SeamHttpSpaces;
|