@seamapi/types 1.528.0 → 1.530.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 +56 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +211 -0
- package/dist/index.cjs +56 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -0
- package/lib/seam/connect/models/events/access-methods.d.ts +6 -0
- package/lib/seam/connect/models/events/access-methods.js +4 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +3 -0
- package/lib/seam/connect/openapi.d.ts +181 -0
- package/lib/seam/connect/openapi.js +52 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-methods.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +54 -0
- package/src/lib/seam/connect/route-types.ts +22 -0
|
@@ -17724,6 +17724,8 @@ export type Routes = {
|
|
|
17724
17724
|
/** Keys of the access grants associated with this access method (if present). */
|
|
17725
17725
|
access_grant_keys?: string[] | undefined;
|
|
17726
17726
|
event_type: 'access_method.issued';
|
|
17727
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
17728
|
+
code?: string | undefined;
|
|
17727
17729
|
} | {
|
|
17728
17730
|
/** ID of the event. */
|
|
17729
17731
|
event_id: string;
|
|
@@ -34093,6 +34095,18 @@ export type Routes = {
|
|
|
34093
34095
|
formData: {};
|
|
34094
34096
|
jsonResponse: {};
|
|
34095
34097
|
};
|
|
34098
|
+
'/devices/simulate/paid_subscription': {
|
|
34099
|
+
route: '/devices/simulate/paid_subscription';
|
|
34100
|
+
method: 'POST';
|
|
34101
|
+
queryParams: {};
|
|
34102
|
+
jsonBody: {
|
|
34103
|
+
device_id: string;
|
|
34104
|
+
is_expired: boolean;
|
|
34105
|
+
};
|
|
34106
|
+
commonParams: {};
|
|
34107
|
+
formData: {};
|
|
34108
|
+
jsonResponse: {};
|
|
34109
|
+
};
|
|
34096
34110
|
'/devices/simulate/remove': {
|
|
34097
34111
|
route: '/devices/simulate/remove';
|
|
34098
34112
|
method: 'POST';
|
|
@@ -35498,6 +35512,8 @@ export type Routes = {
|
|
|
35498
35512
|
/** Keys of the access grants associated with this access method (if present). */
|
|
35499
35513
|
access_grant_keys?: string[] | undefined;
|
|
35500
35514
|
event_type: 'access_method.issued';
|
|
35515
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
35516
|
+
code?: string | undefined;
|
|
35501
35517
|
} | {
|
|
35502
35518
|
/** ID of the event. */
|
|
35503
35519
|
event_id: string;
|
|
@@ -37392,6 +37408,8 @@ export type Routes = {
|
|
|
37392
37408
|
/** Keys of the access grants associated with this access method (if present). */
|
|
37393
37409
|
access_grant_keys?: string[] | undefined;
|
|
37394
37410
|
event_type: 'access_method.issued';
|
|
37411
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
37412
|
+
code?: string | undefined;
|
|
37395
37413
|
} | {
|
|
37396
37414
|
/** ID of the event. */
|
|
37397
37415
|
event_id: string;
|
|
@@ -56218,6 +56236,8 @@ export type Routes = {
|
|
|
56218
56236
|
/** Keys of the access grants associated with this access method (if present). */
|
|
56219
56237
|
access_grant_keys?: string[] | undefined;
|
|
56220
56238
|
event_type: 'access_method.issued';
|
|
56239
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
56240
|
+
code?: string | undefined;
|
|
56221
56241
|
} | {
|
|
56222
56242
|
/** ID of the event. */
|
|
56223
56243
|
event_id: string;
|
|
@@ -83470,6 +83490,8 @@ export type Routes = {
|
|
|
83470
83490
|
/** Keys of the access grants associated with this access method (if present). */
|
|
83471
83491
|
access_grant_keys?: string[] | undefined;
|
|
83472
83492
|
event_type: 'access_method.issued';
|
|
83493
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
83494
|
+
code?: string | undefined;
|
|
83473
83495
|
} | {
|
|
83474
83496
|
/** ID of the event. */
|
|
83475
83497
|
event_id: string;
|
package/package.json
CHANGED
|
@@ -20,6 +20,12 @@ const access_method_event = common_event.extend({
|
|
|
20
20
|
|
|
21
21
|
export const access_method_issued_event = access_method_event.extend({
|
|
22
22
|
event_type: z.literal('access_method.issued'),
|
|
23
|
+
code: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe(
|
|
27
|
+
"The actual PIN code for code access methods (only present when mode is 'code').",
|
|
28
|
+
),
|
|
23
29
|
}).describe(`
|
|
24
30
|
---
|
|
25
31
|
route_path: /access_methods
|
|
@@ -14615,6 +14615,11 @@ export default {
|
|
|
14615
14615
|
format: 'uuid',
|
|
14616
14616
|
type: 'string',
|
|
14617
14617
|
},
|
|
14618
|
+
code: {
|
|
14619
|
+
description:
|
|
14620
|
+
"The actual PIN code for code access methods (only present when mode is 'code').",
|
|
14621
|
+
type: 'string',
|
|
14622
|
+
},
|
|
14618
14623
|
created_at: {
|
|
14619
14624
|
description: 'Date and time at which the event was created.',
|
|
14620
14625
|
format: 'date-time',
|
|
@@ -41525,6 +41530,55 @@ export default {
|
|
|
41525
41530
|
'x-title': 'Simulate Hub Disconnection',
|
|
41526
41531
|
},
|
|
41527
41532
|
},
|
|
41533
|
+
'/devices/simulate/paid_subscription': {
|
|
41534
|
+
post: {
|
|
41535
|
+
description:
|
|
41536
|
+
'Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).\nSend `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.\nThe actual device error is created/cleared by the poller after this state change.',
|
|
41537
|
+
operationId: 'devicesSimulatePaidSubscriptionPost',
|
|
41538
|
+
requestBody: {
|
|
41539
|
+
content: {
|
|
41540
|
+
'application/json': {
|
|
41541
|
+
schema: {
|
|
41542
|
+
properties: {
|
|
41543
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
41544
|
+
is_expired: { type: 'boolean' },
|
|
41545
|
+
},
|
|
41546
|
+
required: ['device_id', 'is_expired'],
|
|
41547
|
+
type: 'object',
|
|
41548
|
+
},
|
|
41549
|
+
},
|
|
41550
|
+
},
|
|
41551
|
+
},
|
|
41552
|
+
responses: {
|
|
41553
|
+
200: {
|
|
41554
|
+
content: {
|
|
41555
|
+
'application/json': {
|
|
41556
|
+
schema: {
|
|
41557
|
+
properties: { ok: { type: 'boolean' } },
|
|
41558
|
+
required: ['ok'],
|
|
41559
|
+
type: 'object',
|
|
41560
|
+
},
|
|
41561
|
+
},
|
|
41562
|
+
},
|
|
41563
|
+
description: 'OK',
|
|
41564
|
+
},
|
|
41565
|
+
400: { description: 'Bad Request' },
|
|
41566
|
+
401: { description: 'Unauthorized' },
|
|
41567
|
+
},
|
|
41568
|
+
security: [
|
|
41569
|
+
{ api_key: [] },
|
|
41570
|
+
{ pat_with_workspace: [] },
|
|
41571
|
+
{ console_session_with_workspace: [] },
|
|
41572
|
+
{ client_session_with_customer: [] },
|
|
41573
|
+
],
|
|
41574
|
+
summary: '/devices/simulate/paid_subscription',
|
|
41575
|
+
tags: ['/devices'],
|
|
41576
|
+
'x-fern-sdk-group-name': ['devices', 'simulate'],
|
|
41577
|
+
'x-fern-sdk-method-name': 'paid_subscription',
|
|
41578
|
+
'x-response-key': null,
|
|
41579
|
+
'x-title': 'Simulate Paid Subscription',
|
|
41580
|
+
},
|
|
41581
|
+
},
|
|
41528
41582
|
'/devices/simulate/remove': {
|
|
41529
41583
|
post: {
|
|
41530
41584
|
description:
|
|
@@ -20597,6 +20597,8 @@ export type Routes = {
|
|
|
20597
20597
|
/** Keys of the access grants associated with this access method (if present). */
|
|
20598
20598
|
access_grant_keys?: string[] | undefined
|
|
20599
20599
|
event_type: 'access_method.issued'
|
|
20600
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
20601
|
+
code?: string | undefined
|
|
20600
20602
|
}
|
|
20601
20603
|
| {
|
|
20602
20604
|
/** ID of the event. */
|
|
@@ -39953,6 +39955,18 @@ export type Routes = {
|
|
|
39953
39955
|
formData: {}
|
|
39954
39956
|
jsonResponse: {}
|
|
39955
39957
|
}
|
|
39958
|
+
'/devices/simulate/paid_subscription': {
|
|
39959
|
+
route: '/devices/simulate/paid_subscription'
|
|
39960
|
+
method: 'POST'
|
|
39961
|
+
queryParams: {}
|
|
39962
|
+
jsonBody: {
|
|
39963
|
+
device_id: string
|
|
39964
|
+
is_expired: boolean
|
|
39965
|
+
}
|
|
39966
|
+
commonParams: {}
|
|
39967
|
+
formData: {}
|
|
39968
|
+
jsonResponse: {}
|
|
39969
|
+
}
|
|
39956
39970
|
'/devices/simulate/remove': {
|
|
39957
39971
|
route: '/devices/simulate/remove'
|
|
39958
39972
|
method: 'POST'
|
|
@@ -41795,6 +41809,8 @@ export type Routes = {
|
|
|
41795
41809
|
/** Keys of the access grants associated with this access method (if present). */
|
|
41796
41810
|
access_grant_keys?: string[] | undefined
|
|
41797
41811
|
event_type: 'access_method.issued'
|
|
41812
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
41813
|
+
code?: string | undefined
|
|
41798
41814
|
}
|
|
41799
41815
|
| {
|
|
41800
41816
|
/** ID of the event. */
|
|
@@ -44212,6 +44228,8 @@ export type Routes = {
|
|
|
44212
44228
|
/** Keys of the access grants associated with this access method (if present). */
|
|
44213
44229
|
access_grant_keys?: string[] | undefined
|
|
44214
44230
|
event_type: 'access_method.issued'
|
|
44231
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
44232
|
+
code?: string | undefined
|
|
44215
44233
|
}
|
|
44216
44234
|
| {
|
|
44217
44235
|
/** ID of the event. */
|
|
@@ -66903,6 +66921,8 @@ export type Routes = {
|
|
|
66903
66921
|
/** Keys of the access grants associated with this access method (if present). */
|
|
66904
66922
|
access_grant_keys?: string[] | undefined
|
|
66905
66923
|
event_type: 'access_method.issued'
|
|
66924
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
66925
|
+
code?: string | undefined
|
|
66906
66926
|
}
|
|
66907
66927
|
| {
|
|
66908
66928
|
/** ID of the event. */
|
|
@@ -99320,6 +99340,8 @@ export type Routes = {
|
|
|
99320
99340
|
/** Keys of the access grants associated with this access method (if present). */
|
|
99321
99341
|
access_grant_keys?: string[] | undefined
|
|
99322
99342
|
event_type: 'access_method.issued'
|
|
99343
|
+
/** The actual PIN code for code access methods (only present when mode is 'code'). */
|
|
99344
|
+
code?: string | undefined
|
|
99323
99345
|
}
|
|
99324
99346
|
| {
|
|
99325
99347
|
/** ID of the event. */
|