@seamapi/types 1.486.0 → 1.487.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 +42 -24
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +99 -0
- package/dist/index.cjs +42 -24
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +86 -0
- package/lib/seam/connect/models/batch.js +3 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +24 -0
- package/lib/seam/connect/openapi.js +16 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +32 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batch.ts +3 -0
- package/src/lib/seam/connect/openapi.ts +16 -0
- package/src/lib/seam/connect/route-types.ts +36 -0
package/dist/connect.d.cts
CHANGED
|
@@ -26846,6 +26846,31 @@ declare const batch: z.ZodObject<{
|
|
|
26846
26846
|
event_type: "phone.deactivated";
|
|
26847
26847
|
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
26848
26848
|
}>]>, "many">>;
|
|
26849
|
+
instant_keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26850
|
+
instant_key_id: z.ZodString;
|
|
26851
|
+
workspace_id: z.ZodString;
|
|
26852
|
+
created_at: z.ZodString;
|
|
26853
|
+
instant_key_url: z.ZodString;
|
|
26854
|
+
client_session_id: z.ZodString;
|
|
26855
|
+
user_identity_id: z.ZodString;
|
|
26856
|
+
expires_at: z.ZodString;
|
|
26857
|
+
}, "strip", z.ZodTypeAny, {
|
|
26858
|
+
workspace_id: string;
|
|
26859
|
+
created_at: string;
|
|
26860
|
+
user_identity_id: string;
|
|
26861
|
+
instant_key_url: string;
|
|
26862
|
+
client_session_id: string;
|
|
26863
|
+
expires_at: string;
|
|
26864
|
+
instant_key_id: string;
|
|
26865
|
+
}, {
|
|
26866
|
+
workspace_id: string;
|
|
26867
|
+
created_at: string;
|
|
26868
|
+
user_identity_id: string;
|
|
26869
|
+
instant_key_url: string;
|
|
26870
|
+
client_session_id: string;
|
|
26871
|
+
expires_at: string;
|
|
26872
|
+
instant_key_id: string;
|
|
26873
|
+
}>, "many">>;
|
|
26849
26874
|
}, "strip", z.ZodTypeAny, {
|
|
26850
26875
|
batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
|
|
26851
26876
|
spaces?: {
|
|
@@ -29897,6 +29922,15 @@ declare const batch: z.ZodObject<{
|
|
|
29897
29922
|
event_type: "phone.deactivated";
|
|
29898
29923
|
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
29899
29924
|
})[] | undefined;
|
|
29925
|
+
instant_keys?: {
|
|
29926
|
+
workspace_id: string;
|
|
29927
|
+
created_at: string;
|
|
29928
|
+
user_identity_id: string;
|
|
29929
|
+
instant_key_url: string;
|
|
29930
|
+
client_session_id: string;
|
|
29931
|
+
expires_at: string;
|
|
29932
|
+
instant_key_id: string;
|
|
29933
|
+
}[] | undefined;
|
|
29900
29934
|
}, {
|
|
29901
29935
|
batch_type: "spaces" | "access_grants" | "access_methods" | "workspaces";
|
|
29902
29936
|
spaces?: {
|
|
@@ -32948,6 +32982,15 @@ declare const batch: z.ZodObject<{
|
|
|
32948
32982
|
event_type: "phone.deactivated";
|
|
32949
32983
|
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
32950
32984
|
})[] | undefined;
|
|
32985
|
+
instant_keys?: {
|
|
32986
|
+
workspace_id: string;
|
|
32987
|
+
created_at: string;
|
|
32988
|
+
user_identity_id: string;
|
|
32989
|
+
instant_key_url: string;
|
|
32990
|
+
client_session_id: string;
|
|
32991
|
+
expires_at: string;
|
|
32992
|
+
instant_key_id: string;
|
|
32993
|
+
}[] | undefined;
|
|
32951
32994
|
}>;
|
|
32952
32995
|
type Batch = z.infer<typeof batch>;
|
|
32953
32996
|
|
|
@@ -63622,6 +63665,12 @@ declare const _default: {
|
|
|
63622
63665
|
};
|
|
63623
63666
|
type: string;
|
|
63624
63667
|
};
|
|
63668
|
+
instant_keys: {
|
|
63669
|
+
items: {
|
|
63670
|
+
$ref: string;
|
|
63671
|
+
};
|
|
63672
|
+
type: string;
|
|
63673
|
+
};
|
|
63625
63674
|
spaces: {
|
|
63626
63675
|
items: {
|
|
63627
63676
|
$ref: string;
|
|
@@ -63825,6 +63874,12 @@ declare const _default: {
|
|
|
63825
63874
|
};
|
|
63826
63875
|
type: string;
|
|
63827
63876
|
};
|
|
63877
|
+
instant_keys: {
|
|
63878
|
+
items: {
|
|
63879
|
+
$ref: string;
|
|
63880
|
+
};
|
|
63881
|
+
type: string;
|
|
63882
|
+
};
|
|
63828
63883
|
spaces: {
|
|
63829
63884
|
items: {
|
|
63830
63885
|
$ref: string;
|
|
@@ -94067,6 +94122,12 @@ declare const _default: {
|
|
|
94067
94122
|
};
|
|
94068
94123
|
type: string;
|
|
94069
94124
|
};
|
|
94125
|
+
instant_keys: {
|
|
94126
|
+
items: {
|
|
94127
|
+
$ref: string;
|
|
94128
|
+
};
|
|
94129
|
+
type: string;
|
|
94130
|
+
};
|
|
94070
94131
|
spaces: {
|
|
94071
94132
|
items: {
|
|
94072
94133
|
$ref: string;
|
|
@@ -94245,6 +94306,12 @@ declare const _default: {
|
|
|
94245
94306
|
};
|
|
94246
94307
|
type: string;
|
|
94247
94308
|
};
|
|
94309
|
+
instant_keys: {
|
|
94310
|
+
items: {
|
|
94311
|
+
$ref: string;
|
|
94312
|
+
};
|
|
94313
|
+
type: string;
|
|
94314
|
+
};
|
|
94248
94315
|
spaces: {
|
|
94249
94316
|
items: {
|
|
94250
94317
|
$ref: string;
|
|
@@ -113648,6 +113715,22 @@ type Routes = {
|
|
|
113648
113715
|
} | undefined;
|
|
113649
113716
|
event_type: 'phone.deactivated';
|
|
113650
113717
|
})[] | undefined;
|
|
113718
|
+
instant_keys?: {
|
|
113719
|
+
/** ID of the Instant Key. */
|
|
113720
|
+
instant_key_id: string;
|
|
113721
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Instant Key. */
|
|
113722
|
+
workspace_id: string;
|
|
113723
|
+
/** Date and time at which the Instant Key was created. */
|
|
113724
|
+
created_at: string;
|
|
113725
|
+
/** Shareable URL for the Instant Key. Use the URL to deliver the Instant Key to your user through a link in a text message or email or by embedding it in your web app. */
|
|
113726
|
+
instant_key_url: string;
|
|
113727
|
+
/** ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) associated with the Instant Key. */
|
|
113728
|
+
client_session_id: string;
|
|
113729
|
+
/** ID of the user identity associated with the Instant Key. */
|
|
113730
|
+
user_identity_id: string;
|
|
113731
|
+
/** Date and time at which the Instant Key expires. */
|
|
113732
|
+
expires_at: string;
|
|
113733
|
+
}[] | undefined;
|
|
113651
113734
|
};
|
|
113652
113735
|
};
|
|
113653
113736
|
};
|
|
@@ -178184,6 +178267,22 @@ type Routes = {
|
|
|
178184
178267
|
} | undefined;
|
|
178185
178268
|
event_type: 'phone.deactivated';
|
|
178186
178269
|
})[] | undefined;
|
|
178270
|
+
instant_keys?: {
|
|
178271
|
+
/** ID of the Instant Key. */
|
|
178272
|
+
instant_key_id: string;
|
|
178273
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Instant Key. */
|
|
178274
|
+
workspace_id: string;
|
|
178275
|
+
/** Date and time at which the Instant Key was created. */
|
|
178276
|
+
created_at: string;
|
|
178277
|
+
/** Shareable URL for the Instant Key. Use the URL to deliver the Instant Key to your user through a link in a text message or email or by embedding it in your web app. */
|
|
178278
|
+
instant_key_url: string;
|
|
178279
|
+
/** ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) associated with the Instant Key. */
|
|
178280
|
+
client_session_id: string;
|
|
178281
|
+
/** ID of the user identity associated with the Instant Key. */
|
|
178282
|
+
user_identity_id: string;
|
|
178283
|
+
/** Date and time at which the Instant Key expires. */
|
|
178284
|
+
expires_at: string;
|
|
178285
|
+
}[] | undefined;
|
|
178187
178286
|
};
|
|
178188
178287
|
};
|
|
178189
178288
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -5106,6 +5106,28 @@ var event_types = seam_event.options.map(
|
|
|
5106
5106
|
zod.z.enum(
|
|
5107
5107
|
event_types
|
|
5108
5108
|
);
|
|
5109
|
+
var instant_key = zod.z.object({
|
|
5110
|
+
instant_key_id: zod.z.string().uuid().describe("ID of the Instant Key."),
|
|
5111
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
5112
|
+
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Instant Key."
|
|
5113
|
+
),
|
|
5114
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the Instant Key was created."),
|
|
5115
|
+
instant_key_url: zod.z.string().url().describe(
|
|
5116
|
+
"Shareable URL for the Instant Key. Use the URL to deliver the Instant Key to your user through a link in a text message or email or by embedding it in your web app."
|
|
5117
|
+
),
|
|
5118
|
+
client_session_id: zod.z.string().uuid().describe(
|
|
5119
|
+
"ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) associated with the Instant Key."
|
|
5120
|
+
),
|
|
5121
|
+
user_identity_id: zod.z.string().uuid().describe("ID of the user identity associated with the Instant Key."),
|
|
5122
|
+
expires_at: zod.z.string().datetime().describe("Date and time at which the Instant Key expires.")
|
|
5123
|
+
}).describe(`
|
|
5124
|
+
---
|
|
5125
|
+
route_path: /instant_keys
|
|
5126
|
+
---
|
|
5127
|
+
Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app.
|
|
5128
|
+
|
|
5129
|
+
There\u2019s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work.
|
|
5130
|
+
`);
|
|
5109
5131
|
var space = zod.z.object({
|
|
5110
5132
|
space_id: zod.z.string().uuid().describe("ID of the space."),
|
|
5111
5133
|
workspace_id: zod.z.string().uuid().describe(
|
|
@@ -5300,7 +5322,8 @@ zod.z.object({
|
|
|
5300
5322
|
connect_webviews: connect_webview.array().optional(),
|
|
5301
5323
|
access_methods: access_method.array().optional(),
|
|
5302
5324
|
access_grants: access_grant.array().optional(),
|
|
5303
|
-
events: seam_event.array().optional()
|
|
5325
|
+
events: seam_event.array().optional(),
|
|
5326
|
+
instant_keys: instant_key.array().optional()
|
|
5304
5327
|
}).describe("A batch of workspace resources.");
|
|
5305
5328
|
var batch = zod.z.object({
|
|
5306
5329
|
batch_type: zod.z.enum([
|
|
@@ -5326,7 +5349,8 @@ var batch = zod.z.object({
|
|
|
5326
5349
|
connect_webviews: connect_webview.array().optional(),
|
|
5327
5350
|
access_methods: access_method.array().optional(),
|
|
5328
5351
|
access_grants: access_grant.array().optional(),
|
|
5329
|
-
events: seam_event.array().optional()
|
|
5352
|
+
events: seam_event.array().optional(),
|
|
5353
|
+
instant_keys: instant_key.array().optional()
|
|
5330
5354
|
}).describe("A batch of workspace resources.");
|
|
5331
5355
|
var bridge = zod.z.object({
|
|
5332
5356
|
bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
|
|
@@ -5421,28 +5445,6 @@ var customization_profile = zod.z.object({
|
|
|
5421
5445
|
---
|
|
5422
5446
|
A customization profile.
|
|
5423
5447
|
`);
|
|
5424
|
-
var instant_key = zod.z.object({
|
|
5425
|
-
instant_key_id: zod.z.string().uuid().describe("ID of the Instant Key."),
|
|
5426
|
-
workspace_id: zod.z.string().uuid().describe(
|
|
5427
|
-
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Instant Key."
|
|
5428
|
-
),
|
|
5429
|
-
created_at: zod.z.string().datetime().describe("Date and time at which the Instant Key was created."),
|
|
5430
|
-
instant_key_url: zod.z.string().url().describe(
|
|
5431
|
-
"Shareable URL for the Instant Key. Use the URL to deliver the Instant Key to your user through a link in a text message or email or by embedding it in your web app."
|
|
5432
|
-
),
|
|
5433
|
-
client_session_id: zod.z.string().uuid().describe(
|
|
5434
|
-
"ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) associated with the Instant Key."
|
|
5435
|
-
),
|
|
5436
|
-
user_identity_id: zod.z.string().uuid().describe("ID of the user identity associated with the Instant Key."),
|
|
5437
|
-
expires_at: zod.z.string().datetime().describe("Date and time at which the Instant Key expires.")
|
|
5438
|
-
}).describe(`
|
|
5439
|
-
---
|
|
5440
|
-
route_path: /instant_keys
|
|
5441
|
-
---
|
|
5442
|
-
Represents a Seam Instant Key. For issuing Bluetooth mobile keys, Instant Keys are the fastest way to share access. With a single API call, you can create a mobile key and send it through text or email or embed it in your own app.
|
|
5443
|
-
|
|
5444
|
-
There\u2019s no app to install, nor account to create. Your user just taps a link and gets a lightweight, native-feeling experience using iOS App Clip or Instant Apps on Android. Further, Instant Keys work offline, so even in areas with poor cellular or Wi-Fi, like elevator banks or concrete-walled hallways, the Instant Keys still work.
|
|
5445
|
-
`);
|
|
5446
5448
|
var noise_threshold = zod.z.object({
|
|
5447
5449
|
noise_threshold_id: zod.z.string().uuid().describe("Unique identifier for the noise threshold."),
|
|
5448
5450
|
device_id: zod.z.string().uuid().describe(
|
|
@@ -31850,6 +31852,10 @@ var openapi_default = {
|
|
|
31850
31852
|
items: { $ref: "#/components/schemas/event" },
|
|
31851
31853
|
type: "array"
|
|
31852
31854
|
},
|
|
31855
|
+
instant_keys: {
|
|
31856
|
+
items: { $ref: "#/components/schemas/instant_key" },
|
|
31857
|
+
type: "array"
|
|
31858
|
+
},
|
|
31853
31859
|
spaces: {
|
|
31854
31860
|
items: { $ref: "#/components/schemas/space" },
|
|
31855
31861
|
type: "array"
|
|
@@ -32019,6 +32025,10 @@ var openapi_default = {
|
|
|
32019
32025
|
items: { $ref: "#/components/schemas/event" },
|
|
32020
32026
|
type: "array"
|
|
32021
32027
|
},
|
|
32028
|
+
instant_keys: {
|
|
32029
|
+
items: { $ref: "#/components/schemas/instant_key" },
|
|
32030
|
+
type: "array"
|
|
32031
|
+
},
|
|
32022
32032
|
spaces: {
|
|
32023
32033
|
items: { $ref: "#/components/schemas/space" },
|
|
32024
32034
|
type: "array"
|
|
@@ -57918,6 +57928,10 @@ var openapi_default = {
|
|
|
57918
57928
|
items: { $ref: "#/components/schemas/event" },
|
|
57919
57929
|
type: "array"
|
|
57920
57930
|
},
|
|
57931
|
+
instant_keys: {
|
|
57932
|
+
items: { $ref: "#/components/schemas/instant_key" },
|
|
57933
|
+
type: "array"
|
|
57934
|
+
},
|
|
57921
57935
|
spaces: {
|
|
57922
57936
|
items: { $ref: "#/components/schemas/space" },
|
|
57923
57937
|
type: "array"
|
|
@@ -58064,6 +58078,10 @@ var openapi_default = {
|
|
|
58064
58078
|
items: { $ref: "#/components/schemas/event" },
|
|
58065
58079
|
type: "array"
|
|
58066
58080
|
},
|
|
58081
|
+
instant_keys: {
|
|
58082
|
+
items: { $ref: "#/components/schemas/instant_key" },
|
|
58083
|
+
type: "array"
|
|
58084
|
+
},
|
|
58067
58085
|
spaces: {
|
|
58068
58086
|
items: { $ref: "#/components/schemas/space" },
|
|
58069
58087
|
type: "array"
|