@seamapi/types 1.300.2 → 1.302.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 +79 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +199 -0
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -1
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +91 -0
- package/lib/seam/connect/openapi.js +77 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +108 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +83 -0
- package/src/lib/seam/connect/route-types.ts +123 -0
|
@@ -4611,6 +4611,114 @@ export interface Routes {
|
|
|
4611
4611
|
};
|
|
4612
4612
|
};
|
|
4613
4613
|
};
|
|
4614
|
+
'/acs/credentials/create_offline_code': {
|
|
4615
|
+
route: '/acs/credentials/create_offline_code';
|
|
4616
|
+
method: 'POST';
|
|
4617
|
+
queryParams: {};
|
|
4618
|
+
jsonBody: {};
|
|
4619
|
+
commonParams: {
|
|
4620
|
+
/** ID of the ACS user to whom the new credential belongs. */
|
|
4621
|
+
acs_user_id: string;
|
|
4622
|
+
/** IDs of the [`acs_entrance`s](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for which the new credential grants access. */
|
|
4623
|
+
allowed_acs_entrance_id?: string | undefined;
|
|
4624
|
+
/** Indicates whether the code is one-time-use or reusable. */
|
|
4625
|
+
is_one_time_use?: boolean;
|
|
4626
|
+
/** Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
4627
|
+
starts_at?: string | undefined;
|
|
4628
|
+
/** Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
4629
|
+
ends_at?: string | undefined;
|
|
4630
|
+
};
|
|
4631
|
+
formData: {};
|
|
4632
|
+
jsonResponse: {
|
|
4633
|
+
/** Means by which a user gains access at an entrance.
|
|
4634
|
+
The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
|
|
4635
|
+
acs_credential: {
|
|
4636
|
+
/** ID of the credential. */
|
|
4637
|
+
acs_credential_id: string;
|
|
4638
|
+
/** ID of the ACS user to whom the credential belongs. */
|
|
4639
|
+
acs_user_id?: string | undefined;
|
|
4640
|
+
acs_credential_pool_id?: string | undefined;
|
|
4641
|
+
/** ID of the access control system that contains the credential. */
|
|
4642
|
+
acs_system_id: string;
|
|
4643
|
+
/** ID of the parent credential. */
|
|
4644
|
+
parent_acs_credential_id?: string | undefined;
|
|
4645
|
+
/** Display name that corresponds to the credential type. */
|
|
4646
|
+
display_name: string;
|
|
4647
|
+
/** Access (PIN) code for the credential. */
|
|
4648
|
+
code?: (string | undefined) | null;
|
|
4649
|
+
card_number?: (string | undefined) | null;
|
|
4650
|
+
is_issued?: boolean | undefined;
|
|
4651
|
+
issued_at?: (string | undefined) | null;
|
|
4652
|
+
/** Access method for the credential. Supported values: `code`, `card`, `mobile_key`. */
|
|
4653
|
+
access_method: 'code' | 'card' | 'mobile_key';
|
|
4654
|
+
/** Brand-specific terminology for the credential type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
|
|
4655
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential') | undefined;
|
|
4656
|
+
/** Display name that corresponds to the brand-specific terminology for the credential type. */
|
|
4657
|
+
external_type_display_name?: string | undefined;
|
|
4658
|
+
/** Date and time at which the credential was created. */
|
|
4659
|
+
created_at: string;
|
|
4660
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the credential. */
|
|
4661
|
+
workspace_id: string;
|
|
4662
|
+
/** Date and time at which the credential validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
4663
|
+
starts_at?: string | undefined;
|
|
4664
|
+
/** Date and time at which the credential validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
4665
|
+
ends_at?: string | undefined;
|
|
4666
|
+
/** Errors associated with the `acs_credential`. */
|
|
4667
|
+
errors: Array<{
|
|
4668
|
+
error_code: string;
|
|
4669
|
+
message: string;
|
|
4670
|
+
}>;
|
|
4671
|
+
/** Warnings associated with the `acs_credential`. */
|
|
4672
|
+
warnings: Array<{
|
|
4673
|
+
/** Date and time at which Seam created the warning. */
|
|
4674
|
+
created_at: string;
|
|
4675
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4676
|
+
message: string;
|
|
4677
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4678
|
+
warning_code: 'waiting_to_be_issued';
|
|
4679
|
+
} | {
|
|
4680
|
+
/** Date and time at which Seam created the warning. */
|
|
4681
|
+
created_at: string;
|
|
4682
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4683
|
+
message: string;
|
|
4684
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4685
|
+
warning_code: 'schedule_externally_modified';
|
|
4686
|
+
} | {
|
|
4687
|
+
/** Date and time at which Seam created the warning. */
|
|
4688
|
+
created_at: string;
|
|
4689
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4690
|
+
message: string;
|
|
4691
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4692
|
+
warning_code: 'schedule_modified';
|
|
4693
|
+
} | {
|
|
4694
|
+
/** Date and time at which Seam created the warning. */
|
|
4695
|
+
created_at: string;
|
|
4696
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4697
|
+
message: string;
|
|
4698
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4699
|
+
warning_code: 'being_deleted';
|
|
4700
|
+
}>;
|
|
4701
|
+
/** Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
|
|
4702
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
4703
|
+
/** Indicates whether the latest state of the credential has been synced from Seam to the provider. */
|
|
4704
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
4705
|
+
/** Date and time at which the state of the credential was most recently synced from Seam to the provider. */
|
|
4706
|
+
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
4707
|
+
/** Visionline-specific metadata for the credential. */
|
|
4708
|
+
visionline_metadata?: {
|
|
4709
|
+
card_function_type: 'guest' | 'staff';
|
|
4710
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
4711
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
4712
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
4713
|
+
is_valid?: boolean | undefined;
|
|
4714
|
+
auto_join?: boolean | undefined;
|
|
4715
|
+
card_id?: string | undefined;
|
|
4716
|
+
credential_id?: string | undefined;
|
|
4717
|
+
} | undefined;
|
|
4718
|
+
is_managed: true;
|
|
4719
|
+
};
|
|
4720
|
+
};
|
|
4721
|
+
};
|
|
4614
4722
|
'/acs/credentials/delete': {
|
|
4615
4723
|
route: '/acs/credentials/delete';
|
|
4616
4724
|
method: 'DELETE' | 'POST';
|
package/package.json
CHANGED
|
@@ -9003,6 +9003,89 @@ export default {
|
|
|
9003
9003
|
'x-title': 'Create a Credential for an ACS User',
|
|
9004
9004
|
},
|
|
9005
9005
|
},
|
|
9006
|
+
'/acs/credentials/create_offline_code': {
|
|
9007
|
+
post: {
|
|
9008
|
+
description:
|
|
9009
|
+
'Creates a new offline [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) for a specified [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
9010
|
+
operationId: 'acsCredentialsCreateOfflineCodePost',
|
|
9011
|
+
requestBody: {
|
|
9012
|
+
content: {
|
|
9013
|
+
'application/json': {
|
|
9014
|
+
schema: {
|
|
9015
|
+
properties: {
|
|
9016
|
+
acs_user_id: {
|
|
9017
|
+
description:
|
|
9018
|
+
'ID of the ACS user to whom the new credential belongs.',
|
|
9019
|
+
format: 'uuid',
|
|
9020
|
+
type: 'string',
|
|
9021
|
+
},
|
|
9022
|
+
allowed_acs_entrance_id: {
|
|
9023
|
+
description:
|
|
9024
|
+
'IDs of the [`acs_entrance`s](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for which the new credential grants access.',
|
|
9025
|
+
format: 'uuid',
|
|
9026
|
+
type: 'string',
|
|
9027
|
+
},
|
|
9028
|
+
ends_at: {
|
|
9029
|
+
description:
|
|
9030
|
+
'Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
|
|
9031
|
+
format: 'date-time',
|
|
9032
|
+
type: 'string',
|
|
9033
|
+
},
|
|
9034
|
+
is_one_time_use: {
|
|
9035
|
+
default: false,
|
|
9036
|
+
description:
|
|
9037
|
+
'Indicates whether the code is one-time-use or reusable.',
|
|
9038
|
+
type: 'boolean',
|
|
9039
|
+
},
|
|
9040
|
+
starts_at: {
|
|
9041
|
+
description:
|
|
9042
|
+
'Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
|
|
9043
|
+
format: 'date-time',
|
|
9044
|
+
type: 'string',
|
|
9045
|
+
},
|
|
9046
|
+
},
|
|
9047
|
+
required: ['acs_user_id'],
|
|
9048
|
+
type: 'object',
|
|
9049
|
+
},
|
|
9050
|
+
},
|
|
9051
|
+
},
|
|
9052
|
+
},
|
|
9053
|
+
responses: {
|
|
9054
|
+
200: {
|
|
9055
|
+
content: {
|
|
9056
|
+
'application/json': {
|
|
9057
|
+
schema: {
|
|
9058
|
+
properties: {
|
|
9059
|
+
acs_credential: {
|
|
9060
|
+
$ref: '#/components/schemas/acs_credential',
|
|
9061
|
+
},
|
|
9062
|
+
ok: { type: 'boolean' },
|
|
9063
|
+
},
|
|
9064
|
+
required: ['acs_credential', 'ok'],
|
|
9065
|
+
type: 'object',
|
|
9066
|
+
},
|
|
9067
|
+
},
|
|
9068
|
+
},
|
|
9069
|
+
description: 'OK',
|
|
9070
|
+
},
|
|
9071
|
+
400: { description: 'Bad Request' },
|
|
9072
|
+
401: { description: 'Unauthorized' },
|
|
9073
|
+
},
|
|
9074
|
+
security: [
|
|
9075
|
+
{ pat_with_workspace: [] },
|
|
9076
|
+
{ console_session: [] },
|
|
9077
|
+
{ api_key: [] },
|
|
9078
|
+
],
|
|
9079
|
+
summary: '/acs/credentials/create_offline_code',
|
|
9080
|
+
tags: ['/acs'],
|
|
9081
|
+
'x-fern-sdk-group-name': ['acs', 'credentials'],
|
|
9082
|
+
'x-fern-sdk-method-name': 'create_offline_code',
|
|
9083
|
+
'x-fern-sdk-return-value': 'acs_credential',
|
|
9084
|
+
'x-response-key': 'acs_credential',
|
|
9085
|
+
'x-title': 'Create an Offline Credential for an ACS User',
|
|
9086
|
+
'x-undocumented': 'Unreleased.',
|
|
9087
|
+
},
|
|
9088
|
+
},
|
|
9006
9089
|
'/acs/credentials/delete': {
|
|
9007
9090
|
post: {
|
|
9008
9091
|
description:
|
|
@@ -5336,6 +5336,129 @@ export interface Routes {
|
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
5339
|
+
'/acs/credentials/create_offline_code': {
|
|
5340
|
+
route: '/acs/credentials/create_offline_code'
|
|
5341
|
+
method: 'POST'
|
|
5342
|
+
queryParams: {}
|
|
5343
|
+
jsonBody: {}
|
|
5344
|
+
commonParams: {
|
|
5345
|
+
/** ID of the ACS user to whom the new credential belongs. */
|
|
5346
|
+
acs_user_id: string
|
|
5347
|
+
/** IDs of the [`acs_entrance`s](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for which the new credential grants access. */
|
|
5348
|
+
allowed_acs_entrance_id?: string | undefined
|
|
5349
|
+
/** Indicates whether the code is one-time-use or reusable. */
|
|
5350
|
+
is_one_time_use?: boolean
|
|
5351
|
+
/** Date and time at which the validity of the new credential starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
5352
|
+
starts_at?: string | undefined
|
|
5353
|
+
/** Date and time at which the validity of the new credential ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
5354
|
+
ends_at?: string | undefined
|
|
5355
|
+
}
|
|
5356
|
+
formData: {}
|
|
5357
|
+
jsonResponse: {
|
|
5358
|
+
/** Means by which a user gains access at an entrance.
|
|
5359
|
+
The `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code. */
|
|
5360
|
+
acs_credential: {
|
|
5361
|
+
/** ID of the credential. */
|
|
5362
|
+
acs_credential_id: string
|
|
5363
|
+
/** ID of the ACS user to whom the credential belongs. */
|
|
5364
|
+
acs_user_id?: string | undefined
|
|
5365
|
+
acs_credential_pool_id?: string | undefined
|
|
5366
|
+
/** ID of the access control system that contains the credential. */
|
|
5367
|
+
acs_system_id: string
|
|
5368
|
+
/** ID of the parent credential. */
|
|
5369
|
+
parent_acs_credential_id?: string | undefined
|
|
5370
|
+
/** Display name that corresponds to the credential type. */
|
|
5371
|
+
display_name: string
|
|
5372
|
+
/** Access (PIN) code for the credential. */
|
|
5373
|
+
code?: (string | undefined) | null
|
|
5374
|
+
card_number?: (string | undefined) | null
|
|
5375
|
+
is_issued?: boolean | undefined
|
|
5376
|
+
issued_at?: (string | undefined) | null
|
|
5377
|
+
/** Access method for the credential. Supported values: `code`, `card`, `mobile_key`. */
|
|
5378
|
+
access_method: 'code' | 'card' | 'mobile_key'
|
|
5379
|
+
/** Brand-specific terminology for the credential type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
|
|
5380
|
+
external_type?:
|
|
5381
|
+
| (
|
|
5382
|
+
| 'pti_card'
|
|
5383
|
+
| 'brivo_credential'
|
|
5384
|
+
| 'hid_credential'
|
|
5385
|
+
| 'visionline_card'
|
|
5386
|
+
| 'salto_ks_credential'
|
|
5387
|
+
)
|
|
5388
|
+
| undefined
|
|
5389
|
+
/** Display name that corresponds to the brand-specific terminology for the credential type. */
|
|
5390
|
+
external_type_display_name?: string | undefined
|
|
5391
|
+
/** Date and time at which the credential was created. */
|
|
5392
|
+
created_at: string
|
|
5393
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the credential. */
|
|
5394
|
+
workspace_id: string
|
|
5395
|
+
/** Date and time at which the credential validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
5396
|
+
starts_at?: string | undefined
|
|
5397
|
+
/** Date and time at which the credential validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
|
|
5398
|
+
ends_at?: string | undefined
|
|
5399
|
+
/** Errors associated with the `acs_credential`. */
|
|
5400
|
+
errors: Array<{
|
|
5401
|
+
error_code: string
|
|
5402
|
+
message: string
|
|
5403
|
+
}>
|
|
5404
|
+
/** Warnings associated with the `acs_credential`. */
|
|
5405
|
+
warnings: Array<
|
|
5406
|
+
| {
|
|
5407
|
+
/** Date and time at which Seam created the warning. */
|
|
5408
|
+
created_at: string
|
|
5409
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5410
|
+
message: string
|
|
5411
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5412
|
+
warning_code: 'waiting_to_be_issued'
|
|
5413
|
+
}
|
|
5414
|
+
| {
|
|
5415
|
+
/** Date and time at which Seam created the warning. */
|
|
5416
|
+
created_at: string
|
|
5417
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5418
|
+
message: string
|
|
5419
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5420
|
+
warning_code: 'schedule_externally_modified'
|
|
5421
|
+
}
|
|
5422
|
+
| {
|
|
5423
|
+
/** Date and time at which Seam created the warning. */
|
|
5424
|
+
created_at: string
|
|
5425
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5426
|
+
message: string
|
|
5427
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5428
|
+
warning_code: 'schedule_modified'
|
|
5429
|
+
}
|
|
5430
|
+
| {
|
|
5431
|
+
/** Date and time at which Seam created the warning. */
|
|
5432
|
+
created_at: string
|
|
5433
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5434
|
+
message: string
|
|
5435
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5436
|
+
warning_code: 'being_deleted'
|
|
5437
|
+
}
|
|
5438
|
+
>
|
|
5439
|
+
/** Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
|
|
5440
|
+
is_multi_phone_sync_credential?: boolean | undefined
|
|
5441
|
+
/** Indicates whether the latest state of the credential has been synced from Seam to the provider. */
|
|
5442
|
+
is_latest_desired_state_synced_with_provider?: boolean | undefined
|
|
5443
|
+
/** Date and time at which the state of the credential was most recently synced from Seam to the provider. */
|
|
5444
|
+
latest_desired_state_synced_with_provider_at?: string | undefined
|
|
5445
|
+
/** Visionline-specific metadata for the credential. */
|
|
5446
|
+
visionline_metadata?:
|
|
5447
|
+
| {
|
|
5448
|
+
card_function_type: 'guest' | 'staff'
|
|
5449
|
+
joiner_acs_credential_ids?: string[] | undefined
|
|
5450
|
+
guest_acs_entrance_ids?: string[] | undefined
|
|
5451
|
+
common_acs_entrance_ids?: string[] | undefined
|
|
5452
|
+
is_valid?: boolean | undefined
|
|
5453
|
+
auto_join?: boolean | undefined
|
|
5454
|
+
card_id?: string | undefined
|
|
5455
|
+
credential_id?: string | undefined
|
|
5456
|
+
}
|
|
5457
|
+
| undefined
|
|
5458
|
+
is_managed: true
|
|
5459
|
+
}
|
|
5460
|
+
}
|
|
5461
|
+
}
|
|
5339
5462
|
'/acs/credentials/delete': {
|
|
5340
5463
|
route: '/acs/credentials/delete'
|
|
5341
5464
|
method: 'DELETE' | 'POST'
|