@seamapi/types 1.23.2 → 1.24.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.
@@ -1004,6 +1004,27 @@ export interface Routes {
1004
1004
  };
1005
1005
  };
1006
1006
  };
1007
+ '/client_sessions/get_or_create': {
1008
+ route: '/client_sessions/get_or_create';
1009
+ method: 'POST' | 'PUT';
1010
+ queryParams: {};
1011
+ jsonBody: {
1012
+ user_identifier_key?: string | undefined;
1013
+ connect_webview_ids?: string[] | undefined;
1014
+ connected_account_ids?: string[] | undefined;
1015
+ };
1016
+ commonParams: {};
1017
+ formData: {};
1018
+ jsonResponse: {
1019
+ client_session: {
1020
+ client_session_id: string;
1021
+ user_identifier_key: string | null;
1022
+ created_at: string;
1023
+ token: string;
1024
+ workspace_id: string;
1025
+ };
1026
+ };
1027
+ };
1007
1028
  '/client_sessions/grant_access': {
1008
1029
  route: '/client_sessions/grant_access';
1009
1030
  method: 'PATCH' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -4226,6 +4226,104 @@ export default {
4226
4226
  'x-fern-sdk-return-value': 'client_session',
4227
4227
  },
4228
4228
  },
4229
+ '/client_sessions/get_or_create': {
4230
+ post: {
4231
+ operationId: 'clientSessionsGetOrCreatePost',
4232
+ requestBody: {
4233
+ content: {
4234
+ 'application/json': {
4235
+ schema: {
4236
+ properties: {
4237
+ connect_webview_ids: {
4238
+ items: { type: 'string' },
4239
+ type: 'array',
4240
+ },
4241
+ connected_account_ids: {
4242
+ items: { type: 'string' },
4243
+ type: 'array',
4244
+ },
4245
+ user_identifier_key: { minLength: 1, type: 'string' },
4246
+ },
4247
+ type: 'object',
4248
+ },
4249
+ },
4250
+ },
4251
+ },
4252
+ responses: {
4253
+ 200: {
4254
+ content: {
4255
+ 'application/json': {
4256
+ schema: {
4257
+ properties: {
4258
+ client_session: {
4259
+ $ref: '#/components/schemas/client_session',
4260
+ },
4261
+ ok: { type: 'boolean' },
4262
+ },
4263
+ required: ['client_session', 'ok'],
4264
+ type: 'object',
4265
+ },
4266
+ },
4267
+ },
4268
+ description: 'OK',
4269
+ },
4270
+ 400: { description: 'Bad Request' },
4271
+ 401: { description: 'Unauthorized' },
4272
+ },
4273
+ summary: '/client_sessions/get_or_create',
4274
+ tags: ['/client_sessions'],
4275
+ 'x-fern-sdk-group-name': ['client_sessions'],
4276
+ 'x-fern-sdk-method-name': 'get_or_create',
4277
+ 'x-fern-sdk-return-value': 'client_session',
4278
+ },
4279
+ put: {
4280
+ operationId: 'clientSessionsGetOrCreatePut',
4281
+ requestBody: {
4282
+ content: {
4283
+ 'application/json': {
4284
+ schema: {
4285
+ properties: {
4286
+ connect_webview_ids: {
4287
+ items: { type: 'string' },
4288
+ type: 'array',
4289
+ },
4290
+ connected_account_ids: {
4291
+ items: { type: 'string' },
4292
+ type: 'array',
4293
+ },
4294
+ user_identifier_key: { minLength: 1, type: 'string' },
4295
+ },
4296
+ type: 'object',
4297
+ },
4298
+ },
4299
+ },
4300
+ },
4301
+ responses: {
4302
+ 200: {
4303
+ content: {
4304
+ 'application/json': {
4305
+ schema: {
4306
+ properties: {
4307
+ client_session: {
4308
+ $ref: '#/components/schemas/client_session',
4309
+ },
4310
+ ok: { type: 'boolean' },
4311
+ },
4312
+ required: ['client_session', 'ok'],
4313
+ type: 'object',
4314
+ },
4315
+ },
4316
+ },
4317
+ description: 'OK',
4318
+ },
4319
+ 400: { description: 'Bad Request' },
4320
+ 401: { description: 'Unauthorized' },
4321
+ },
4322
+ summary: '/client_sessions/get_or_create',
4323
+ tags: ['/client_sessions'],
4324
+ 'x-fern-ignore': true,
4325
+ },
4326
+ },
4229
4327
  '/client_sessions/grant_access': {
4230
4328
  patch: {
4231
4329
  operationId: 'clientSessionsGrantAccessPatch',
@@ -1049,6 +1049,27 @@ export interface Routes {
1049
1049
  }
1050
1050
  }
1051
1051
  }
1052
+ '/client_sessions/get_or_create': {
1053
+ route: '/client_sessions/get_or_create'
1054
+ method: 'POST' | 'PUT'
1055
+ queryParams: {}
1056
+ jsonBody: {
1057
+ user_identifier_key?: string | undefined
1058
+ connect_webview_ids?: string[] | undefined
1059
+ connected_account_ids?: string[] | undefined
1060
+ }
1061
+ commonParams: {}
1062
+ formData: {}
1063
+ jsonResponse: {
1064
+ client_session: {
1065
+ client_session_id: string
1066
+ user_identifier_key: string | null
1067
+ created_at: string
1068
+ token: string
1069
+ workspace_id: string
1070
+ }
1071
+ }
1072
+ }
1052
1073
  '/client_sessions/grant_access': {
1053
1074
  route: '/client_sessions/grant_access'
1054
1075
  method: 'PATCH' | 'POST'