@seamapi/types 1.1087.0 → 1.1089.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.
|
@@ -41992,7 +41992,7 @@ export type Routes = {
|
|
|
41992
41992
|
customer_id?: string | undefined;
|
|
41993
41993
|
/** Customer key that you want to associate with the new client session. */
|
|
41994
41994
|
customer_key?: string | undefined;
|
|
41995
|
-
/** Your user ID for the user for whom you want to create a client session. */
|
|
41995
|
+
/** Your user ID for the user for whom you want to create a client session. When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. */
|
|
41996
41996
|
user_identifier_key?: string | undefined;
|
|
41997
41997
|
/** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) for which you want to create a client session. */
|
|
41998
41998
|
connect_webview_ids?: string[] | undefined;
|
|
@@ -42118,7 +42118,7 @@ export type Routes = {
|
|
|
42118
42118
|
method: 'POST';
|
|
42119
42119
|
queryParams: {};
|
|
42120
42120
|
jsonBody: {
|
|
42121
|
-
/** Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). */
|
|
42121
|
+
/** Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. */
|
|
42122
42122
|
user_identifier_key?: string | undefined;
|
|
42123
42123
|
/** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) that you want to associate with the client session (or that are already associated with the existing client session). */
|
|
42124
42124
|
connect_webview_ids?: string[] | undefined;
|
|
@@ -83761,6 +83761,38 @@ export type Routes = {
|
|
|
83761
83761
|
};
|
|
83762
83762
|
maxDuration: undefined;
|
|
83763
83763
|
};
|
|
83764
|
+
'/seam/customer/v1/automation_runs/create': {
|
|
83765
|
+
route: '/seam/customer/v1/automation_runs/create';
|
|
83766
|
+
method: 'POST';
|
|
83767
|
+
queryParams: {};
|
|
83768
|
+
jsonBody: {
|
|
83769
|
+
/** Key of the customer that owns the reservation. Not allowed with client_session_with_customer auth. */
|
|
83770
|
+
customer_key?: string | undefined;
|
|
83771
|
+
/** Key of the reservation to run automations for. */
|
|
83772
|
+
reservation_key: string;
|
|
83773
|
+
/** Don't use the reservation's preferred code for the new access grant's code. */
|
|
83774
|
+
should_ignore_preferred_code?: boolean;
|
|
83775
|
+
/** Don't use the last four digits of the guest's phone number as the new access grant's code, even when the automation is configured to. */
|
|
83776
|
+
should_ignore_guest_phone_last4_as_code?: boolean;
|
|
83777
|
+
};
|
|
83778
|
+
commonParams: {};
|
|
83779
|
+
formData: {};
|
|
83780
|
+
jsonResponse: {
|
|
83781
|
+
automation_run: {
|
|
83782
|
+
status: 'access_grant_created' | 'skipped';
|
|
83783
|
+
reservation_id: string;
|
|
83784
|
+
reservation_key: string;
|
|
83785
|
+
/** ID of the access grant the run created. */
|
|
83786
|
+
access_grant_id: string | null;
|
|
83787
|
+
/** Why the run did not create an access grant. */
|
|
83788
|
+
skip_reason: string | null;
|
|
83789
|
+
message: string | null;
|
|
83790
|
+
/** Set when the new access grant's code is fixed by the reservation instead of generated, so it matches the previous code. `reservation_preferred_code` means the reservation sets a preferred code; `guest_phone_number` means the automation uses the last digits of the guest's phone number. */
|
|
83791
|
+
reused_code_source: ('reservation_preferred_code' | 'guest_phone_number') | null;
|
|
83792
|
+
};
|
|
83793
|
+
};
|
|
83794
|
+
maxDuration: undefined;
|
|
83795
|
+
};
|
|
83764
83796
|
'/seam/customer/v1/automation_runs/list': {
|
|
83765
83797
|
route: '/seam/customer/v1/automation_runs/list';
|
|
83766
83798
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -46866,7 +46866,7 @@ const openapi: OpenAPISpec = {
|
|
|
46866
46866
|
},
|
|
46867
46867
|
user_identifier_key: {
|
|
46868
46868
|
description:
|
|
46869
|
-
'Your user ID for the user for whom you want to create a client session.',
|
|
46869
|
+
'Your user ID for the user for whom you want to create a client session. When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session.',
|
|
46870
46870
|
minLength: 1,
|
|
46871
46871
|
type: 'string',
|
|
46872
46872
|
},
|
|
@@ -47066,7 +47066,7 @@ const openapi: OpenAPISpec = {
|
|
|
47066
47066
|
},
|
|
47067
47067
|
user_identifier_key: {
|
|
47068
47068
|
description:
|
|
47069
|
-
'Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session).',
|
|
47069
|
+
'Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session.',
|
|
47070
47070
|
minLength: 1,
|
|
47071
47071
|
type: 'string',
|
|
47072
47072
|
},
|
|
@@ -59391,6 +59391,124 @@ const openapi: OpenAPISpec = {
|
|
|
59391
59391
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
59392
59392
|
},
|
|
59393
59393
|
},
|
|
59394
|
+
'/seam/customer/v1/automation_runs/create': {
|
|
59395
|
+
post: {
|
|
59396
|
+
description:
|
|
59397
|
+
"Runs automations for a reservation now instead of waiting for the next connector sync. Use it after deleting a reservation's access grant to issue a new one.",
|
|
59398
|
+
operationId: 'seamCustomerV1AutomationRunsCreatePost',
|
|
59399
|
+
requestBody: {
|
|
59400
|
+
content: {
|
|
59401
|
+
'application/json': {
|
|
59402
|
+
schema: {
|
|
59403
|
+
properties: {
|
|
59404
|
+
customer_key: {
|
|
59405
|
+
description:
|
|
59406
|
+
'Key of the customer that owns the reservation. Not allowed with client_session_with_customer auth.',
|
|
59407
|
+
minLength: 1,
|
|
59408
|
+
type: 'string',
|
|
59409
|
+
},
|
|
59410
|
+
reservation_key: {
|
|
59411
|
+
description:
|
|
59412
|
+
'Key of the reservation to run automations for.',
|
|
59413
|
+
minLength: 1,
|
|
59414
|
+
type: 'string',
|
|
59415
|
+
},
|
|
59416
|
+
should_ignore_guest_phone_last4_as_code: {
|
|
59417
|
+
default: false,
|
|
59418
|
+
description:
|
|
59419
|
+
"Don't use the last four digits of the guest's phone number as the new access grant's code, even when the automation is configured to.",
|
|
59420
|
+
type: 'boolean',
|
|
59421
|
+
},
|
|
59422
|
+
should_ignore_preferred_code: {
|
|
59423
|
+
default: false,
|
|
59424
|
+
description:
|
|
59425
|
+
"Don't use the reservation's preferred code for the new access grant's code.",
|
|
59426
|
+
type: 'boolean',
|
|
59427
|
+
},
|
|
59428
|
+
},
|
|
59429
|
+
required: ['reservation_key'],
|
|
59430
|
+
type: 'object',
|
|
59431
|
+
},
|
|
59432
|
+
},
|
|
59433
|
+
},
|
|
59434
|
+
},
|
|
59435
|
+
responses: {
|
|
59436
|
+
'200': {
|
|
59437
|
+
content: {
|
|
59438
|
+
'application/json': {
|
|
59439
|
+
schema: {
|
|
59440
|
+
properties: {
|
|
59441
|
+
automation_run: {
|
|
59442
|
+
properties: {
|
|
59443
|
+
access_grant_id: {
|
|
59444
|
+
description:
|
|
59445
|
+
'ID of the access grant the run created.',
|
|
59446
|
+
format: 'uuid',
|
|
59447
|
+
nullable: true,
|
|
59448
|
+
type: 'string',
|
|
59449
|
+
},
|
|
59450
|
+
message: { nullable: true, type: 'string' },
|
|
59451
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
59452
|
+
reservation_key: { type: 'string' },
|
|
59453
|
+
reused_code_source: {
|
|
59454
|
+
description:
|
|
59455
|
+
"Set when the new access grant's code is fixed by the reservation instead of generated, so it matches the previous code. `reservation_preferred_code` means the reservation sets a preferred code; `guest_phone_number` means the automation uses the last digits of the guest's phone number.",
|
|
59456
|
+
enum: [
|
|
59457
|
+
'reservation_preferred_code',
|
|
59458
|
+
'guest_phone_number',
|
|
59459
|
+
],
|
|
59460
|
+
nullable: true,
|
|
59461
|
+
type: 'string',
|
|
59462
|
+
},
|
|
59463
|
+
skip_reason: {
|
|
59464
|
+
description:
|
|
59465
|
+
'Why the run did not create an access grant.',
|
|
59466
|
+
nullable: true,
|
|
59467
|
+
type: 'string',
|
|
59468
|
+
},
|
|
59469
|
+
status: {
|
|
59470
|
+
enum: ['access_grant_created', 'skipped'],
|
|
59471
|
+
type: 'string',
|
|
59472
|
+
},
|
|
59473
|
+
},
|
|
59474
|
+
required: [
|
|
59475
|
+
'status',
|
|
59476
|
+
'reservation_id',
|
|
59477
|
+
'reservation_key',
|
|
59478
|
+
'access_grant_id',
|
|
59479
|
+
'skip_reason',
|
|
59480
|
+
'message',
|
|
59481
|
+
'reused_code_source',
|
|
59482
|
+
],
|
|
59483
|
+
type: 'object',
|
|
59484
|
+
},
|
|
59485
|
+
ok: { type: 'boolean' },
|
|
59486
|
+
},
|
|
59487
|
+
required: ['automation_run', 'ok'],
|
|
59488
|
+
type: 'object',
|
|
59489
|
+
},
|
|
59490
|
+
},
|
|
59491
|
+
},
|
|
59492
|
+
description: 'OK',
|
|
59493
|
+
},
|
|
59494
|
+
'400': { description: 'Bad Request' },
|
|
59495
|
+
'401': { description: 'Unauthorized' },
|
|
59496
|
+
},
|
|
59497
|
+
security: [
|
|
59498
|
+
{ client_session_with_customer: [] },
|
|
59499
|
+
{ console_session_with_workspace: [] },
|
|
59500
|
+
{ api_key: [] },
|
|
59501
|
+
],
|
|
59502
|
+
summary: '/seam/customer/v1/automation_runs/create',
|
|
59503
|
+
tags: [],
|
|
59504
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automation_runs'],
|
|
59505
|
+
'x-fern-sdk-method-name': 'create',
|
|
59506
|
+
'x-fern-sdk-return-value': 'automation_run',
|
|
59507
|
+
'x-response-key': 'automation_run',
|
|
59508
|
+
'x-title': 'Create Automation Run',
|
|
59509
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
59510
|
+
},
|
|
59511
|
+
},
|
|
59394
59512
|
'/seam/customer/v1/automation_runs/list': {
|
|
59395
59513
|
get: {
|
|
59396
59514
|
description:
|
|
@@ -49188,7 +49188,7 @@ export type Routes = {
|
|
|
49188
49188
|
customer_id?: string | undefined
|
|
49189
49189
|
/** Customer key that you want to associate with the new client session. */
|
|
49190
49190
|
customer_key?: string | undefined
|
|
49191
|
-
/** Your user ID for the user for whom you want to create a client session. */
|
|
49191
|
+
/** Your user ID for the user for whom you want to create a client session. When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. */
|
|
49192
49192
|
user_identifier_key?: string | undefined
|
|
49193
49193
|
/** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) for which you want to create a client session. */
|
|
49194
49194
|
connect_webview_ids?: string[] | undefined
|
|
@@ -49314,7 +49314,7 @@ export type Routes = {
|
|
|
49314
49314
|
method: 'POST'
|
|
49315
49315
|
queryParams: {}
|
|
49316
49316
|
jsonBody: {
|
|
49317
|
-
/** Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). */
|
|
49317
|
+
/** Your user ID for the user that you want to associate with the client session (or that is already associated with the existing client session). When you authenticate with a publishable key, the `user_identifier_key` must be a high-entropy secret that only the user knows, such as a UUIDv4 or a salted hash. Do not use an email address, name, phone number, or other guessable value, because anyone who knows the `user_identifier_key` can retrieve the client session. */
|
|
49318
49318
|
user_identifier_key?: string | undefined
|
|
49319
49319
|
/** IDs of the [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews) that you want to associate with the client session (or that are already associated with the existing client session). */
|
|
49320
49320
|
connect_webview_ids?: string[] | undefined
|
|
@@ -100521,6 +100521,39 @@ export type Routes = {
|
|
|
100521
100521
|
}
|
|
100522
100522
|
maxDuration: undefined
|
|
100523
100523
|
}
|
|
100524
|
+
'/seam/customer/v1/automation_runs/create': {
|
|
100525
|
+
route: '/seam/customer/v1/automation_runs/create'
|
|
100526
|
+
method: 'POST'
|
|
100527
|
+
queryParams: {}
|
|
100528
|
+
jsonBody: {
|
|
100529
|
+
/** Key of the customer that owns the reservation. Not allowed with client_session_with_customer auth. */
|
|
100530
|
+
customer_key?: string | undefined
|
|
100531
|
+
/** Key of the reservation to run automations for. */
|
|
100532
|
+
reservation_key: string
|
|
100533
|
+
/** Don't use the reservation's preferred code for the new access grant's code. */
|
|
100534
|
+
should_ignore_preferred_code?: boolean
|
|
100535
|
+
/** Don't use the last four digits of the guest's phone number as the new access grant's code, even when the automation is configured to. */
|
|
100536
|
+
should_ignore_guest_phone_last4_as_code?: boolean
|
|
100537
|
+
}
|
|
100538
|
+
commonParams: {}
|
|
100539
|
+
formData: {}
|
|
100540
|
+
jsonResponse: {
|
|
100541
|
+
automation_run: {
|
|
100542
|
+
status: 'access_grant_created' | 'skipped'
|
|
100543
|
+
reservation_id: string
|
|
100544
|
+
reservation_key: string
|
|
100545
|
+
/** ID of the access grant the run created. */
|
|
100546
|
+
access_grant_id: string | null
|
|
100547
|
+
/** Why the run did not create an access grant. */
|
|
100548
|
+
skip_reason: string | null
|
|
100549
|
+
message: string | null
|
|
100550
|
+
/** Set when the new access grant's code is fixed by the reservation instead of generated, so it matches the previous code. `reservation_preferred_code` means the reservation sets a preferred code; `guest_phone_number` means the automation uses the last digits of the guest's phone number. */
|
|
100551
|
+
reused_code_source:
|
|
100552
|
+
('reservation_preferred_code' | 'guest_phone_number') | null
|
|
100553
|
+
}
|
|
100554
|
+
}
|
|
100555
|
+
maxDuration: undefined
|
|
100556
|
+
}
|
|
100524
100557
|
'/seam/customer/v1/automation_runs/list': {
|
|
100525
100558
|
route: '/seam/customer/v1/automation_runs/list'
|
|
100526
100559
|
method: 'GET' | 'POST'
|