@seamapi/types 1.403.0 → 1.404.1
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 +120 -34
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +107 -5
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +55 -15
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/custom-metadata.js +5 -2
- package/lib/seam/connect/models/custom-metadata.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +33 -1
- package/lib/seam/connect/openapi.js +76 -15
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +74 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +79 -15
- package/src/lib/seam/connect/models/custom-metadata.ts +8 -4
- package/src/lib/seam/connect/openapi.ts +95 -15
- package/src/lib/seam/connect/route-types.ts +74 -4
package/dist/connect.cjs
CHANGED
|
@@ -522,10 +522,11 @@ zod.z.record(
|
|
|
522
522
|
zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
|
|
523
523
|
).refine((val) => Object.keys(val).length <= 50, {
|
|
524
524
|
message: "Custom metadata is limited to a maximum of 50 keys"
|
|
525
|
-
})
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
525
|
+
}).describe(
|
|
526
|
+
"Set of up to 50 key:value pairs, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application."
|
|
527
|
+
);
|
|
528
|
+
var custom_metadata = zod.z.record(zod.z.string(), zod.z.union([zod.z.string(), zod.z.boolean()])).describe(
|
|
529
|
+
"Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application."
|
|
529
530
|
);
|
|
530
531
|
|
|
531
532
|
// src/lib/seam/connect/models/connected-accounts/connected-account.ts
|
|
@@ -3342,14 +3343,22 @@ var connect_webview_device_selection_mode = zod.z.enum([
|
|
|
3342
3343
|
"multiple"
|
|
3343
3344
|
]);
|
|
3344
3345
|
var connect_webview = zod.z.object({
|
|
3345
|
-
connect_webview_id: zod.z.string().uuid(),
|
|
3346
|
-
workspace_id: zod.z.string().uuid()
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3346
|
+
connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
|
|
3347
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
3348
|
+
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview."
|
|
3349
|
+
),
|
|
3350
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the Connect Webview was created."),
|
|
3351
|
+
connected_account_id: zod.z.string().uuid().nullable().describe(
|
|
3352
|
+
"ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview."
|
|
3353
|
+
),
|
|
3354
|
+
url: zod.z.string().url().describe(
|
|
3355
|
+
"URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user."
|
|
3356
|
+
),
|
|
3350
3357
|
device_selection_mode: connect_webview_device_selection_mode,
|
|
3351
3358
|
// TODO: Use enum value.
|
|
3352
|
-
accepted_providers: zod.z.array(zod.z.string())
|
|
3359
|
+
accepted_providers: zod.z.array(zod.z.string()).describe(
|
|
3360
|
+
"List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
3361
|
+
),
|
|
3353
3362
|
accepted_devices: zod.z.array(zod.z.string()).describe(
|
|
3354
3363
|
`
|
|
3355
3364
|
---
|
|
@@ -3366,16 +3375,32 @@ var connect_webview = zod.z.object({
|
|
|
3366
3375
|
---
|
|
3367
3376
|
`
|
|
3368
3377
|
),
|
|
3369
|
-
any_provider_allowed: zod.z.boolean(),
|
|
3370
|
-
login_successful: zod.z.boolean()
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3378
|
+
any_provider_allowed: zod.z.boolean().describe("Indicates whether any provider is allowed."),
|
|
3379
|
+
login_successful: zod.z.boolean().describe(
|
|
3380
|
+
"Indicates whether the user logged in successfully using the Connect Webview."
|
|
3381
|
+
),
|
|
3382
|
+
status: zod.z.enum(["pending", "failed", "authorized"]).describe(
|
|
3383
|
+
"Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview."
|
|
3384
|
+
),
|
|
3385
|
+
custom_redirect_url: zod.z.string().url().nullable().describe(
|
|
3386
|
+
"URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs."
|
|
3387
|
+
),
|
|
3388
|
+
custom_redirect_failure_url: zod.z.string().url().nullable().describe(
|
|
3389
|
+
"URL to which the Connect Webview should redirect when an unexpected error occurs."
|
|
3390
|
+
),
|
|
3374
3391
|
custom_metadata,
|
|
3375
|
-
automatically_manage_new_devices: zod.z.boolean()
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3392
|
+
automatically_manage_new_devices: zod.z.boolean().describe(
|
|
3393
|
+
"Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API."
|
|
3394
|
+
),
|
|
3395
|
+
wait_for_device_creation: zod.z.boolean().describe(
|
|
3396
|
+
"Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview."
|
|
3397
|
+
),
|
|
3398
|
+
authorized_at: zod.z.string().datetime().nullable().describe(
|
|
3399
|
+
"Date and time at which the user authorized (through the Connect Webview) the management of their devices."
|
|
3400
|
+
),
|
|
3401
|
+
selected_provider: zod.z.string().nullable().describe(
|
|
3402
|
+
"Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
3403
|
+
)
|
|
3379
3404
|
}).describe(`
|
|
3380
3405
|
---
|
|
3381
3406
|
route_path: /connect_webviews
|
|
@@ -11056,39 +11081,62 @@ var openapi_default = {
|
|
|
11056
11081
|
"x-deprecated": "Unused. Will be removed.",
|
|
11057
11082
|
"x-undocumented": "Unused. Will be removed."
|
|
11058
11083
|
},
|
|
11059
|
-
accepted_providers: {
|
|
11084
|
+
accepted_providers: {
|
|
11085
|
+
description: "List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).",
|
|
11086
|
+
items: { type: "string" },
|
|
11087
|
+
type: "array"
|
|
11088
|
+
},
|
|
11060
11089
|
any_device_allowed: {
|
|
11061
11090
|
deprecated: true,
|
|
11062
11091
|
type: "boolean",
|
|
11063
11092
|
"x-deprecated": "Unused. Will be removed.",
|
|
11064
11093
|
"x-undocumented": "Unused. Will be removed."
|
|
11065
11094
|
},
|
|
11066
|
-
any_provider_allowed: {
|
|
11095
|
+
any_provider_allowed: {
|
|
11096
|
+
description: "Indicates whether any provider is allowed.",
|
|
11097
|
+
type: "boolean"
|
|
11098
|
+
},
|
|
11067
11099
|
authorized_at: {
|
|
11100
|
+
description: "Date and time at which the user authorized (through the Connect Webview) the management of their devices.",
|
|
11068
11101
|
format: "date-time",
|
|
11069
11102
|
nullable: true,
|
|
11070
11103
|
type: "string"
|
|
11071
11104
|
},
|
|
11072
|
-
automatically_manage_new_devices: {
|
|
11073
|
-
|
|
11105
|
+
automatically_manage_new_devices: {
|
|
11106
|
+
description: "Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.",
|
|
11107
|
+
type: "boolean"
|
|
11108
|
+
},
|
|
11109
|
+
connect_webview_id: {
|
|
11110
|
+
description: "ID of the Connect Webview.",
|
|
11111
|
+
format: "uuid",
|
|
11112
|
+
type: "string"
|
|
11113
|
+
},
|
|
11074
11114
|
connected_account_id: {
|
|
11115
|
+
description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview.",
|
|
11075
11116
|
format: "uuid",
|
|
11076
11117
|
nullable: true,
|
|
11077
11118
|
type: "string"
|
|
11078
11119
|
},
|
|
11079
|
-
created_at: {
|
|
11120
|
+
created_at: {
|
|
11121
|
+
description: "Date and time at which the Connect Webview was created.",
|
|
11122
|
+
format: "date-time",
|
|
11123
|
+
type: "string"
|
|
11124
|
+
},
|
|
11080
11125
|
custom_metadata: {
|
|
11081
11126
|
additionalProperties: {
|
|
11082
11127
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
11083
11128
|
},
|
|
11129
|
+
description: "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.",
|
|
11084
11130
|
type: "object"
|
|
11085
11131
|
},
|
|
11086
11132
|
custom_redirect_failure_url: {
|
|
11133
|
+
description: "URL to which the Connect Webview should redirect when an unexpected error occurs.",
|
|
11087
11134
|
format: "uri",
|
|
11088
11135
|
nullable: true,
|
|
11089
11136
|
type: "string"
|
|
11090
11137
|
},
|
|
11091
11138
|
custom_redirect_url: {
|
|
11139
|
+
description: "URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.",
|
|
11092
11140
|
format: "uri",
|
|
11093
11141
|
nullable: true,
|
|
11094
11142
|
type: "string"
|
|
@@ -11097,12 +11145,34 @@ var openapi_default = {
|
|
|
11097
11145
|
enum: ["none", "single", "multiple"],
|
|
11098
11146
|
type: "string"
|
|
11099
11147
|
},
|
|
11100
|
-
login_successful: {
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11148
|
+
login_successful: {
|
|
11149
|
+
description: "Indicates whether the user logged in successfully using the Connect Webview.",
|
|
11150
|
+
type: "boolean"
|
|
11151
|
+
},
|
|
11152
|
+
selected_provider: {
|
|
11153
|
+
description: "Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).",
|
|
11154
|
+
nullable: true,
|
|
11155
|
+
type: "string"
|
|
11156
|
+
},
|
|
11157
|
+
status: {
|
|
11158
|
+
description: "Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.",
|
|
11159
|
+
enum: ["pending", "failed", "authorized"],
|
|
11160
|
+
type: "string"
|
|
11161
|
+
},
|
|
11162
|
+
url: {
|
|
11163
|
+
description: "URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.",
|
|
11164
|
+
format: "uri",
|
|
11165
|
+
type: "string"
|
|
11166
|
+
},
|
|
11167
|
+
wait_for_device_creation: {
|
|
11168
|
+
description: "Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.",
|
|
11169
|
+
type: "boolean"
|
|
11170
|
+
},
|
|
11171
|
+
workspace_id: {
|
|
11172
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview.",
|
|
11173
|
+
format: "uuid",
|
|
11174
|
+
type: "string"
|
|
11175
|
+
}
|
|
11106
11176
|
},
|
|
11107
11177
|
required: [
|
|
11108
11178
|
"connect_webview_id",
|
|
@@ -11140,6 +11210,7 @@ var openapi_default = {
|
|
|
11140
11210
|
additionalProperties: {
|
|
11141
11211
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
11142
11212
|
},
|
|
11213
|
+
description: "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.",
|
|
11143
11214
|
type: "object"
|
|
11144
11215
|
},
|
|
11145
11216
|
errors: {
|
|
@@ -11427,6 +11498,7 @@ var openapi_default = {
|
|
|
11427
11498
|
additionalProperties: {
|
|
11428
11499
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
11429
11500
|
},
|
|
11501
|
+
description: "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.",
|
|
11430
11502
|
type: "object"
|
|
11431
11503
|
},
|
|
11432
11504
|
device_id: {
|
|
@@ -27436,13 +27508,22 @@ var openapi_default = {
|
|
|
27436
27508
|
"application/json": {
|
|
27437
27509
|
schema: {
|
|
27438
27510
|
properties: {
|
|
27511
|
+
acs_system_id: {
|
|
27512
|
+
description: "ID of the access system for which you want to list accessible entrances. You can only provide acs_system_id with user_identity_id.",
|
|
27513
|
+
format: "uuid",
|
|
27514
|
+
type: "string"
|
|
27515
|
+
},
|
|
27439
27516
|
acs_user_id: {
|
|
27440
|
-
description: "ID of the access system user for whom you want to list accessible entrances.",
|
|
27517
|
+
description: "ID of the access system user for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.",
|
|
27518
|
+
format: "uuid",
|
|
27519
|
+
type: "string"
|
|
27520
|
+
},
|
|
27521
|
+
user_identity_id: {
|
|
27522
|
+
description: "ID of the user identity for whom you want to list accessible entrances. You can only provide acs_user_id or user_identity_id.",
|
|
27441
27523
|
format: "uuid",
|
|
27442
27524
|
type: "string"
|
|
27443
27525
|
}
|
|
27444
27526
|
},
|
|
27445
|
-
required: ["acs_user_id"],
|
|
27446
27527
|
type: "object"
|
|
27447
27528
|
}
|
|
27448
27529
|
}
|
|
@@ -27500,12 +27581,17 @@ var openapi_default = {
|
|
|
27500
27581
|
type: "string"
|
|
27501
27582
|
},
|
|
27502
27583
|
acs_user_id: {
|
|
27503
|
-
description: "ID of the access system user that you want to remove from an access group.",
|
|
27584
|
+
description: "ID of the access system user that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.",
|
|
27585
|
+
format: "uuid",
|
|
27586
|
+
type: "string"
|
|
27587
|
+
},
|
|
27588
|
+
user_identity_id: {
|
|
27589
|
+
description: "ID of the user identity that you want to remove from an access group. You can only provide acs_user_id or user_identity_id.",
|
|
27504
27590
|
format: "uuid",
|
|
27505
27591
|
type: "string"
|
|
27506
27592
|
}
|
|
27507
27593
|
},
|
|
27508
|
-
required: ["
|
|
27594
|
+
required: ["acs_access_group_id"],
|
|
27509
27595
|
type: "object"
|
|
27510
27596
|
}
|
|
27511
27597
|
}
|