@seamapi/http 1.58.0 → 1.60.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 +245 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +90 -3
- package/dist/index.cjs +247 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +8 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +51 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.d.ts +86 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js +150 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/index.d.ts +1 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/index.js +6 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/index.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/routes/workspaces/index.js +1 -0
- package/lib/seam/connect/routes/workspaces/index.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +2 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +4 -0
- package/lib/seam/connect/routes/workspaces/workspaces.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-http-endpoints.ts +130 -0
- package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +386 -0
- package/src/lib/seam/connect/routes/workspaces/customization-profiles/index.ts +6 -0
- package/src/lib/seam/connect/routes/workspaces/index.ts +1 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +9 -0
- package/src/lib/version.ts +1 -1
|
@@ -10,6 +10,7 @@ import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../../lib
|
|
|
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 { SeamHttpWorkspacesCustomizationProfiles } from './customization-profiles/index.js';
|
|
13
14
|
export class SeamHttpWorkspaces {
|
|
14
15
|
constructor(apiKeyOrOptions = {}) {
|
|
15
16
|
this.ltsVersion = seamApiLtsVersion;
|
|
@@ -82,6 +83,9 @@ export class SeamHttpWorkspaces {
|
|
|
82
83
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
83
84
|
await clientSessions.get();
|
|
84
85
|
}
|
|
86
|
+
get customizationProfiles() {
|
|
87
|
+
return SeamHttpWorkspacesCustomizationProfiles.fromClient(this.client, this.defaults);
|
|
88
|
+
}
|
|
85
89
|
create(parameters, options = {}) {
|
|
86
90
|
return new SeamHttpRequest(this, {
|
|
87
91
|
pathname: '/workspaces/create',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/routes/workspaces/workspaces.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;A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AAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,WAAW;YACxB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,UAAqC,EACrC,UAAiC,EAAE;QAEnC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,kBAAkB;YAC5B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,YAAY;YACzB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,YAAY,CACV,UAA6C,EAC7C,UAAyC,EAAE;QAE3C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,2BAA2B;YACrC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,gBAAgB;YAC7B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CACJ,UAAuC,EACvC,UAAmC,EAAE;QAErC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,oBAAoB;YAC9B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,SAAS;YACtB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;;AAnNM,6BAAU,GAAG,iBAAiB,AAApB,CAAoB"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "1.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "1.60.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.60.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"npm": ">=10.1.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@seamapi/types": "^1.
|
|
88
|
+
"@seamapi/types": "^1.477.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
91
91
|
"@seamapi/types": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@seamapi/blueprint": "^0.51.1",
|
|
102
102
|
"@seamapi/fake-seam-connect": "^1.77.0",
|
|
103
103
|
"@seamapi/smith": "^0.4.4",
|
|
104
|
-
"@seamapi/types": "1.
|
|
104
|
+
"@seamapi/types": "1.477.0",
|
|
105
105
|
"@swc/core": "^1.11.29",
|
|
106
106
|
"@types/eslint": "^8.44.2",
|
|
107
107
|
"@types/jsonwebtoken": "^9.0.6",
|
|
@@ -797,6 +797,24 @@ import {
|
|
|
797
797
|
type WebhooksUpdateParameters,
|
|
798
798
|
type WebhooksUpdateRequest,
|
|
799
799
|
} from './webhooks/index.js'
|
|
800
|
+
import {
|
|
801
|
+
SeamHttpWorkspacesCustomizationProfiles,
|
|
802
|
+
type WorkspacesCustomizationProfilesCreateOptions,
|
|
803
|
+
type WorkspacesCustomizationProfilesCreateParameters,
|
|
804
|
+
type WorkspacesCustomizationProfilesCreateRequest,
|
|
805
|
+
type WorkspacesCustomizationProfilesGetOptions,
|
|
806
|
+
type WorkspacesCustomizationProfilesGetParameters,
|
|
807
|
+
type WorkspacesCustomizationProfilesGetRequest,
|
|
808
|
+
type WorkspacesCustomizationProfilesListOptions,
|
|
809
|
+
type WorkspacesCustomizationProfilesListParameters,
|
|
810
|
+
type WorkspacesCustomizationProfilesListRequest,
|
|
811
|
+
type WorkspacesCustomizationProfilesUpdateOptions,
|
|
812
|
+
type WorkspacesCustomizationProfilesUpdateParameters,
|
|
813
|
+
type WorkspacesCustomizationProfilesUpdateRequest,
|
|
814
|
+
type WorkspacesCustomizationProfilesUploadImagesOptions,
|
|
815
|
+
type WorkspacesCustomizationProfilesUploadImagesParameters,
|
|
816
|
+
type WorkspacesCustomizationProfilesUploadImagesRequest,
|
|
817
|
+
} from './workspaces/customization-profiles/index.js'
|
|
800
818
|
import {
|
|
801
819
|
SeamHttpWorkspaces,
|
|
802
820
|
type WorkspacesCreateOptions,
|
|
@@ -3920,6 +3938,113 @@ export class SeamHttpEndpoints {
|
|
|
3920
3938
|
return seam.update(...args)
|
|
3921
3939
|
}
|
|
3922
3940
|
}
|
|
3941
|
+
|
|
3942
|
+
get ['/workspaces/customization_profiles/create'](): (
|
|
3943
|
+
parameters?: WorkspacesCustomizationProfilesCreateParameters,
|
|
3944
|
+
options?: WorkspacesCustomizationProfilesCreateOptions,
|
|
3945
|
+
) => WorkspacesCustomizationProfilesCreateRequest {
|
|
3946
|
+
const { client, defaults } = this
|
|
3947
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3948
|
+
throw new Error(
|
|
3949
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3950
|
+
)
|
|
3951
|
+
}
|
|
3952
|
+
return function workspacesCustomizationProfilesCreate(
|
|
3953
|
+
...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['create']>
|
|
3954
|
+
): ReturnType<SeamHttpWorkspacesCustomizationProfiles['create']> {
|
|
3955
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
3956
|
+
client,
|
|
3957
|
+
defaults,
|
|
3958
|
+
)
|
|
3959
|
+
return seam.create(...args)
|
|
3960
|
+
}
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
get ['/workspaces/customization_profiles/get'](): (
|
|
3964
|
+
parameters?: WorkspacesCustomizationProfilesGetParameters,
|
|
3965
|
+
options?: WorkspacesCustomizationProfilesGetOptions,
|
|
3966
|
+
) => WorkspacesCustomizationProfilesGetRequest {
|
|
3967
|
+
const { client, defaults } = this
|
|
3968
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3969
|
+
throw new Error(
|
|
3970
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3971
|
+
)
|
|
3972
|
+
}
|
|
3973
|
+
return function workspacesCustomizationProfilesGet(
|
|
3974
|
+
...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['get']>
|
|
3975
|
+
): ReturnType<SeamHttpWorkspacesCustomizationProfiles['get']> {
|
|
3976
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
3977
|
+
client,
|
|
3978
|
+
defaults,
|
|
3979
|
+
)
|
|
3980
|
+
return seam.get(...args)
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3984
|
+
get ['/workspaces/customization_profiles/list'](): (
|
|
3985
|
+
parameters?: WorkspacesCustomizationProfilesListParameters,
|
|
3986
|
+
options?: WorkspacesCustomizationProfilesListOptions,
|
|
3987
|
+
) => WorkspacesCustomizationProfilesListRequest {
|
|
3988
|
+
const { client, defaults } = this
|
|
3989
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
3990
|
+
throw new Error(
|
|
3991
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
3992
|
+
)
|
|
3993
|
+
}
|
|
3994
|
+
return function workspacesCustomizationProfilesList(
|
|
3995
|
+
...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['list']>
|
|
3996
|
+
): ReturnType<SeamHttpWorkspacesCustomizationProfiles['list']> {
|
|
3997
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
3998
|
+
client,
|
|
3999
|
+
defaults,
|
|
4000
|
+
)
|
|
4001
|
+
return seam.list(...args)
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
get ['/workspaces/customization_profiles/update'](): (
|
|
4006
|
+
parameters?: WorkspacesCustomizationProfilesUpdateParameters,
|
|
4007
|
+
options?: WorkspacesCustomizationProfilesUpdateOptions,
|
|
4008
|
+
) => WorkspacesCustomizationProfilesUpdateRequest {
|
|
4009
|
+
const { client, defaults } = this
|
|
4010
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4011
|
+
throw new Error(
|
|
4012
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
4013
|
+
)
|
|
4014
|
+
}
|
|
4015
|
+
return function workspacesCustomizationProfilesUpdate(
|
|
4016
|
+
...args: Parameters<SeamHttpWorkspacesCustomizationProfiles['update']>
|
|
4017
|
+
): ReturnType<SeamHttpWorkspacesCustomizationProfiles['update']> {
|
|
4018
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
4019
|
+
client,
|
|
4020
|
+
defaults,
|
|
4021
|
+
)
|
|
4022
|
+
return seam.update(...args)
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
|
|
4026
|
+
get ['/workspaces/customization_profiles/upload_images'](): (
|
|
4027
|
+
parameters?: WorkspacesCustomizationProfilesUploadImagesParameters,
|
|
4028
|
+
options?: WorkspacesCustomizationProfilesUploadImagesOptions,
|
|
4029
|
+
) => WorkspacesCustomizationProfilesUploadImagesRequest {
|
|
4030
|
+
const { client, defaults } = this
|
|
4031
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
4032
|
+
throw new Error(
|
|
4033
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
4034
|
+
)
|
|
4035
|
+
}
|
|
4036
|
+
return function workspacesCustomizationProfilesUploadImages(
|
|
4037
|
+
...args: Parameters<
|
|
4038
|
+
SeamHttpWorkspacesCustomizationProfiles['uploadImages']
|
|
4039
|
+
>
|
|
4040
|
+
): ReturnType<SeamHttpWorkspacesCustomizationProfiles['uploadImages']> {
|
|
4041
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
4042
|
+
client,
|
|
4043
|
+
defaults,
|
|
4044
|
+
)
|
|
4045
|
+
return seam.uploadImages(...args)
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
3923
4048
|
}
|
|
3924
4049
|
|
|
3925
4050
|
export type SeamHttpEndpointQueryPaths =
|
|
@@ -4012,6 +4137,8 @@ export type SeamHttpEndpointQueryPaths =
|
|
|
4012
4137
|
| '/workspaces/find_resources'
|
|
4013
4138
|
| '/workspaces/get'
|
|
4014
4139
|
| '/workspaces/list'
|
|
4140
|
+
| '/workspaces/customization_profiles/get'
|
|
4141
|
+
| '/workspaces/customization_profiles/list'
|
|
4015
4142
|
|
|
4016
4143
|
export type SeamHttpEndpointPaginatedQueryPaths =
|
|
4017
4144
|
| '/access_codes/list'
|
|
@@ -4144,3 +4271,6 @@ export type SeamHttpEndpointMutationPaths =
|
|
|
4144
4271
|
| '/workspaces/create'
|
|
4145
4272
|
| '/workspaces/reset_sandbox'
|
|
4146
4273
|
| '/workspaces/update'
|
|
4274
|
+
| '/workspaces/customization_profiles/create'
|
|
4275
|
+
| '/workspaces/customization_profiles/update'
|
|
4276
|
+
| '/workspaces/customization_profiles/upload_images'
|
package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by codegen/smith.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
11
|
+
|
|
12
|
+
import { seamApiLtsVersion } from 'lib/lts-version.js'
|
|
13
|
+
import {
|
|
14
|
+
getAuthHeadersForClientSessionToken,
|
|
15
|
+
warnOnInsecureuserIdentifierKey,
|
|
16
|
+
} from 'lib/seam/connect/auth.js'
|
|
17
|
+
import { type Client, createClient } from 'lib/seam/connect/client.js'
|
|
18
|
+
import {
|
|
19
|
+
isSeamHttpOptionsWithApiKey,
|
|
20
|
+
isSeamHttpOptionsWithClient,
|
|
21
|
+
isSeamHttpOptionsWithClientSessionToken,
|
|
22
|
+
isSeamHttpOptionsWithConsoleSessionToken,
|
|
23
|
+
isSeamHttpOptionsWithPersonalAccessToken,
|
|
24
|
+
type SeamHttpFromPublishableKeyOptions,
|
|
25
|
+
SeamHttpInvalidOptionsError,
|
|
26
|
+
type SeamHttpOptions,
|
|
27
|
+
type SeamHttpOptionsWithApiKey,
|
|
28
|
+
type SeamHttpOptionsWithClient,
|
|
29
|
+
type SeamHttpOptionsWithClientSessionToken,
|
|
30
|
+
type SeamHttpOptionsWithConsoleSessionToken,
|
|
31
|
+
type SeamHttpOptionsWithPersonalAccessToken,
|
|
32
|
+
type SeamHttpRequestOptions,
|
|
33
|
+
} from 'lib/seam/connect/options.js'
|
|
34
|
+
import {
|
|
35
|
+
limitToSeamHttpRequestOptions,
|
|
36
|
+
parseOptions,
|
|
37
|
+
} from 'lib/seam/connect/parse-options.js'
|
|
38
|
+
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
|
|
39
|
+
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
40
|
+
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
41
|
+
import type { SetNonNullable } from 'lib/types.js'
|
|
42
|
+
|
|
43
|
+
export class SeamHttpWorkspacesCustomizationProfiles {
|
|
44
|
+
client: Client
|
|
45
|
+
readonly defaults: Required<SeamHttpRequestOptions>
|
|
46
|
+
readonly ltsVersion = seamApiLtsVersion
|
|
47
|
+
static ltsVersion = seamApiLtsVersion
|
|
48
|
+
|
|
49
|
+
constructor(apiKeyOrOptions: string | SeamHttpOptions = {}) {
|
|
50
|
+
const options = parseOptions(apiKeyOrOptions)
|
|
51
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
52
|
+
throw new Error(
|
|
53
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
this.client = 'client' in options ? options.client : createClient(options)
|
|
57
|
+
this.defaults = limitToSeamHttpRequestOptions(options)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static fromClient(
|
|
61
|
+
client: SeamHttpOptionsWithClient['client'],
|
|
62
|
+
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
63
|
+
): SeamHttpWorkspacesCustomizationProfiles {
|
|
64
|
+
const constructorOptions = { ...options, client }
|
|
65
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
66
|
+
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
67
|
+
}
|
|
68
|
+
return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static fromApiKey(
|
|
72
|
+
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
73
|
+
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
74
|
+
): SeamHttpWorkspacesCustomizationProfiles {
|
|
75
|
+
const constructorOptions = { ...options, apiKey }
|
|
76
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
77
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
78
|
+
}
|
|
79
|
+
return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static fromClientSessionToken(
|
|
83
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
84
|
+
options: Omit<
|
|
85
|
+
SeamHttpOptionsWithClientSessionToken,
|
|
86
|
+
'clientSessionToken'
|
|
87
|
+
> = {},
|
|
88
|
+
): SeamHttpWorkspacesCustomizationProfiles {
|
|
89
|
+
const constructorOptions = { ...options, clientSessionToken }
|
|
90
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
91
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
92
|
+
}
|
|
93
|
+
return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static async fromPublishableKey(
|
|
97
|
+
publishableKey: string,
|
|
98
|
+
userIdentifierKey: string,
|
|
99
|
+
options: SeamHttpFromPublishableKeyOptions = {},
|
|
100
|
+
): Promise<SeamHttpWorkspacesCustomizationProfiles> {
|
|
101
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
102
|
+
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
103
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
104
|
+
throw new SeamHttpInvalidOptionsError(
|
|
105
|
+
'The client option cannot be used with SeamHttpWorkspacesCustomizationProfiles.fromPublishableKey',
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
const client = createClient(clientOptions)
|
|
109
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client)
|
|
110
|
+
const { token } = await clientSessions.getOrCreate({
|
|
111
|
+
user_identifier_key: userIdentifierKey,
|
|
112
|
+
})
|
|
113
|
+
return SeamHttpWorkspacesCustomizationProfiles.fromClientSessionToken(
|
|
114
|
+
token,
|
|
115
|
+
options,
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static fromConsoleSessionToken(
|
|
120
|
+
consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'],
|
|
121
|
+
workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'],
|
|
122
|
+
options: Omit<
|
|
123
|
+
SeamHttpOptionsWithConsoleSessionToken,
|
|
124
|
+
'consoleSessionToken' | 'workspaceId'
|
|
125
|
+
> = {},
|
|
126
|
+
): SeamHttpWorkspacesCustomizationProfiles {
|
|
127
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
128
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
129
|
+
throw new SeamHttpInvalidOptionsError(
|
|
130
|
+
'Missing consoleSessionToken or workspaceId',
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static fromPersonalAccessToken(
|
|
137
|
+
personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'],
|
|
138
|
+
workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'],
|
|
139
|
+
options: Omit<
|
|
140
|
+
SeamHttpOptionsWithPersonalAccessToken,
|
|
141
|
+
'personalAccessToken' | 'workspaceId'
|
|
142
|
+
> = {},
|
|
143
|
+
): SeamHttpWorkspacesCustomizationProfiles {
|
|
144
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
145
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
146
|
+
throw new SeamHttpInvalidOptionsError(
|
|
147
|
+
'Missing personalAccessToken or workspaceId',
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
return new SeamHttpWorkspacesCustomizationProfiles(constructorOptions)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(
|
|
154
|
+
request: SeamHttpRequest<TResponse, TResponseKey>,
|
|
155
|
+
): SeamPaginator<TResponse, TResponseKey> {
|
|
156
|
+
return new SeamPaginator<TResponse, TResponseKey>(this, request)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
async updateClientSessionToken(
|
|
160
|
+
clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'],
|
|
161
|
+
): Promise<void> {
|
|
162
|
+
const { headers } = this.client.defaults
|
|
163
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
164
|
+
clientSessionToken,
|
|
165
|
+
})
|
|
166
|
+
for (const key of Object.keys(authHeaders)) {
|
|
167
|
+
if (headers[key] == null) {
|
|
168
|
+
throw new Error(
|
|
169
|
+
'Cannot update a clientSessionToken on a client created without a clientSessionToken',
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
this.client.defaults.headers = { ...headers, ...authHeaders }
|
|
174
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client)
|
|
175
|
+
await clientSessions.get()
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
create(
|
|
179
|
+
parameters?: WorkspacesCustomizationProfilesCreateParameters,
|
|
180
|
+
options: WorkspacesCustomizationProfilesCreateOptions = {},
|
|
181
|
+
): WorkspacesCustomizationProfilesCreateRequest {
|
|
182
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
183
|
+
throw new Error(
|
|
184
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
return new SeamHttpRequest(this, {
|
|
188
|
+
pathname: '/workspaces/customization_profiles/create',
|
|
189
|
+
method: 'POST',
|
|
190
|
+
body: parameters,
|
|
191
|
+
responseKey: 'customization_profile',
|
|
192
|
+
options,
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
get(
|
|
197
|
+
parameters?: WorkspacesCustomizationProfilesGetParameters,
|
|
198
|
+
options: WorkspacesCustomizationProfilesGetOptions = {},
|
|
199
|
+
): WorkspacesCustomizationProfilesGetRequest {
|
|
200
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
201
|
+
throw new Error(
|
|
202
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
203
|
+
)
|
|
204
|
+
}
|
|
205
|
+
return new SeamHttpRequest(this, {
|
|
206
|
+
pathname: '/workspaces/customization_profiles/get',
|
|
207
|
+
method: 'POST',
|
|
208
|
+
body: parameters,
|
|
209
|
+
responseKey: 'customization_profile',
|
|
210
|
+
options,
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
list(
|
|
215
|
+
parameters?: WorkspacesCustomizationProfilesListParameters,
|
|
216
|
+
options: WorkspacesCustomizationProfilesListOptions = {},
|
|
217
|
+
): WorkspacesCustomizationProfilesListRequest {
|
|
218
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
219
|
+
throw new Error(
|
|
220
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
return new SeamHttpRequest(this, {
|
|
224
|
+
pathname: '/workspaces/customization_profiles/list',
|
|
225
|
+
method: 'GET',
|
|
226
|
+
params: parameters,
|
|
227
|
+
responseKey: 'customization_profiles',
|
|
228
|
+
options,
|
|
229
|
+
})
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
update(
|
|
233
|
+
parameters?: WorkspacesCustomizationProfilesUpdateParameters,
|
|
234
|
+
options: WorkspacesCustomizationProfilesUpdateOptions = {},
|
|
235
|
+
): WorkspacesCustomizationProfilesUpdateRequest {
|
|
236
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
237
|
+
throw new Error(
|
|
238
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
239
|
+
)
|
|
240
|
+
}
|
|
241
|
+
return new SeamHttpRequest(this, {
|
|
242
|
+
pathname: '/workspaces/customization_profiles/update',
|
|
243
|
+
method: 'PATCH',
|
|
244
|
+
body: parameters,
|
|
245
|
+
responseKey: undefined,
|
|
246
|
+
options,
|
|
247
|
+
})
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
uploadImages(
|
|
251
|
+
parameters?: WorkspacesCustomizationProfilesUploadImagesParameters,
|
|
252
|
+
options: WorkspacesCustomizationProfilesUploadImagesOptions = {},
|
|
253
|
+
): WorkspacesCustomizationProfilesUploadImagesRequest {
|
|
254
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
255
|
+
throw new Error(
|
|
256
|
+
'Cannot use undocumented API without isUndocumentedApiEnabled',
|
|
257
|
+
)
|
|
258
|
+
}
|
|
259
|
+
return new SeamHttpRequest(this, {
|
|
260
|
+
pathname: '/workspaces/customization_profiles/upload_images',
|
|
261
|
+
method: 'POST',
|
|
262
|
+
body: parameters,
|
|
263
|
+
responseKey: undefined,
|
|
264
|
+
options,
|
|
265
|
+
})
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type WorkspacesCustomizationProfilesCreateParameters =
|
|
270
|
+
RouteRequestBody<'/workspaces/customization_profiles/create'>
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Use WorkspacesCustomizationProfilesCreateParameters instead.
|
|
274
|
+
*/
|
|
275
|
+
export type WorkspacesCustomizationProfilesCreateBody =
|
|
276
|
+
WorkspacesCustomizationProfilesCreateParameters
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @deprecated Use WorkspacesCustomizationProfilesCreateRequest instead.
|
|
280
|
+
*/
|
|
281
|
+
export type WorkspacesCustomizationProfilesCreateResponse = SetNonNullable<
|
|
282
|
+
Required<RouteResponse<'/workspaces/customization_profiles/create'>>
|
|
283
|
+
>
|
|
284
|
+
|
|
285
|
+
export type WorkspacesCustomizationProfilesCreateRequest = SeamHttpRequest<
|
|
286
|
+
WorkspacesCustomizationProfilesCreateResponse,
|
|
287
|
+
'customization_profile'
|
|
288
|
+
>
|
|
289
|
+
|
|
290
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
291
|
+
export interface WorkspacesCustomizationProfilesCreateOptions {}
|
|
292
|
+
|
|
293
|
+
export type WorkspacesCustomizationProfilesGetParameters =
|
|
294
|
+
RouteRequestBody<'/workspaces/customization_profiles/get'>
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @deprecated Use WorkspacesCustomizationProfilesGetParameters instead.
|
|
298
|
+
*/
|
|
299
|
+
export type WorkspacesCustomizationProfilesGetParams =
|
|
300
|
+
WorkspacesCustomizationProfilesGetParameters
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @deprecated Use WorkspacesCustomizationProfilesGetRequest instead.
|
|
304
|
+
*/
|
|
305
|
+
export type WorkspacesCustomizationProfilesGetResponse = SetNonNullable<
|
|
306
|
+
Required<RouteResponse<'/workspaces/customization_profiles/get'>>
|
|
307
|
+
>
|
|
308
|
+
|
|
309
|
+
export type WorkspacesCustomizationProfilesGetRequest = SeamHttpRequest<
|
|
310
|
+
WorkspacesCustomizationProfilesGetResponse,
|
|
311
|
+
'customization_profile'
|
|
312
|
+
>
|
|
313
|
+
|
|
314
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
315
|
+
export interface WorkspacesCustomizationProfilesGetOptions {}
|
|
316
|
+
|
|
317
|
+
export type WorkspacesCustomizationProfilesListParameters =
|
|
318
|
+
RouteRequestParams<'/workspaces/customization_profiles/list'>
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @deprecated Use WorkspacesCustomizationProfilesListParameters instead.
|
|
322
|
+
*/
|
|
323
|
+
export type WorkspacesCustomizationProfilesListParams =
|
|
324
|
+
WorkspacesCustomizationProfilesListParameters
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* @deprecated Use WorkspacesCustomizationProfilesListRequest instead.
|
|
328
|
+
*/
|
|
329
|
+
export type WorkspacesCustomizationProfilesListResponse = SetNonNullable<
|
|
330
|
+
Required<RouteResponse<'/workspaces/customization_profiles/list'>>
|
|
331
|
+
>
|
|
332
|
+
|
|
333
|
+
export type WorkspacesCustomizationProfilesListRequest = SeamHttpRequest<
|
|
334
|
+
WorkspacesCustomizationProfilesListResponse,
|
|
335
|
+
'customization_profiles'
|
|
336
|
+
>
|
|
337
|
+
|
|
338
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
339
|
+
export interface WorkspacesCustomizationProfilesListOptions {}
|
|
340
|
+
|
|
341
|
+
export type WorkspacesCustomizationProfilesUpdateParameters =
|
|
342
|
+
RouteRequestBody<'/workspaces/customization_profiles/update'>
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @deprecated Use WorkspacesCustomizationProfilesUpdateParameters instead.
|
|
346
|
+
*/
|
|
347
|
+
export type WorkspacesCustomizationProfilesUpdateBody =
|
|
348
|
+
WorkspacesCustomizationProfilesUpdateParameters
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @deprecated Use WorkspacesCustomizationProfilesUpdateRequest instead.
|
|
352
|
+
*/
|
|
353
|
+
export type WorkspacesCustomizationProfilesUpdateResponse = SetNonNullable<
|
|
354
|
+
Required<RouteResponse<'/workspaces/customization_profiles/update'>>
|
|
355
|
+
>
|
|
356
|
+
|
|
357
|
+
export type WorkspacesCustomizationProfilesUpdateRequest = SeamHttpRequest<
|
|
358
|
+
void,
|
|
359
|
+
undefined
|
|
360
|
+
>
|
|
361
|
+
|
|
362
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
363
|
+
export interface WorkspacesCustomizationProfilesUpdateOptions {}
|
|
364
|
+
|
|
365
|
+
export type WorkspacesCustomizationProfilesUploadImagesParameters =
|
|
366
|
+
RouteRequestBody<'/workspaces/customization_profiles/upload_images'>
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @deprecated Use WorkspacesCustomizationProfilesUploadImagesParameters instead.
|
|
370
|
+
*/
|
|
371
|
+
export type WorkspacesCustomizationProfilesUploadImagesBody =
|
|
372
|
+
WorkspacesCustomizationProfilesUploadImagesParameters
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @deprecated Use WorkspacesCustomizationProfilesUploadImagesRequest instead.
|
|
376
|
+
*/
|
|
377
|
+
export type WorkspacesCustomizationProfilesUploadImagesResponse =
|
|
378
|
+
SetNonNullable<
|
|
379
|
+
Required<RouteResponse<'/workspaces/customization_profiles/upload_images'>>
|
|
380
|
+
>
|
|
381
|
+
|
|
382
|
+
export type WorkspacesCustomizationProfilesUploadImagesRequest =
|
|
383
|
+
SeamHttpRequest<void, undefined>
|
|
384
|
+
|
|
385
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
386
|
+
export interface WorkspacesCustomizationProfilesUploadImagesOptions {}
|
|
@@ -40,6 +40,8 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
|
40
40
|
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
|
|
41
41
|
import type { SetNonNullable } from 'lib/types.js'
|
|
42
42
|
|
|
43
|
+
import { SeamHttpWorkspacesCustomizationProfiles } from './customization-profiles/index.js'
|
|
44
|
+
|
|
43
45
|
export class SeamHttpWorkspaces {
|
|
44
46
|
client: Client
|
|
45
47
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
@@ -167,6 +169,13 @@ export class SeamHttpWorkspaces {
|
|
|
167
169
|
await clientSessions.get()
|
|
168
170
|
}
|
|
169
171
|
|
|
172
|
+
get customizationProfiles(): SeamHttpWorkspacesCustomizationProfiles {
|
|
173
|
+
return SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
174
|
+
this.client,
|
|
175
|
+
this.defaults,
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
|
|
170
179
|
create(
|
|
171
180
|
parameters?: WorkspacesCreateParameters,
|
|
172
181
|
options: WorkspacesCreateOptions = {},
|
package/src/lib/version.ts
CHANGED