@seamapi/types 1.874.0 → 1.876.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 +63 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +127 -0
- package/dist/index.cjs +63 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.js +63 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +127 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +67 -3
- package/src/lib/seam/connect/route-types.ts +135 -0
|
@@ -15492,6 +15492,133 @@ export type Routes = {
|
|
|
15492
15492
|
jsonResponse: {};
|
|
15493
15493
|
maxDuration: undefined;
|
|
15494
15494
|
};
|
|
15495
|
+
'/access_methods/assign_card': {
|
|
15496
|
+
route: '/access_methods/assign_card';
|
|
15497
|
+
method: 'POST';
|
|
15498
|
+
queryParams: {};
|
|
15499
|
+
jsonBody: {};
|
|
15500
|
+
commonParams: {
|
|
15501
|
+
/** ID of the card-mode `access_method` to assign the card to. */
|
|
15502
|
+
access_method_id: string;
|
|
15503
|
+
/** Card number of the card credential to assign. */
|
|
15504
|
+
card_number: string;
|
|
15505
|
+
};
|
|
15506
|
+
formData: {};
|
|
15507
|
+
jsonResponse: {
|
|
15508
|
+
/** Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key. */
|
|
15509
|
+
access_method: {
|
|
15510
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
15511
|
+
workspace_id: string;
|
|
15512
|
+
/** ID of the access method. */
|
|
15513
|
+
access_method_id: string;
|
|
15514
|
+
/** Display name of the access method. */
|
|
15515
|
+
display_name: string;
|
|
15516
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
|
|
15517
|
+
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
15518
|
+
/** Date and time at which the access method was created. */
|
|
15519
|
+
created_at: string;
|
|
15520
|
+
/** Date and time at which the access method was issued. */
|
|
15521
|
+
issued_at: string | null;
|
|
15522
|
+
/** Indicates whether the access method has been issued. */
|
|
15523
|
+
is_issued: boolean;
|
|
15524
|
+
/** URL of the Instant Key for mobile key access methods. */
|
|
15525
|
+
instant_key_url?: string | undefined;
|
|
15526
|
+
/** Token of the client session associated with the access method. */
|
|
15527
|
+
client_session_token?: string | undefined;
|
|
15528
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
15529
|
+
is_encoding_required?: boolean | undefined;
|
|
15530
|
+
/** Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued. */
|
|
15531
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
15532
|
+
/** The actual PIN code for code access methods. */
|
|
15533
|
+
code?: (string | null) | undefined;
|
|
15534
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
15535
|
+
warnings: ({
|
|
15536
|
+
/** Date and time at which Seam created the warning. */
|
|
15537
|
+
created_at: string;
|
|
15538
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15539
|
+
message: string;
|
|
15540
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15541
|
+
warning_code: 'being_deleted';
|
|
15542
|
+
} | {
|
|
15543
|
+
/** Date and time at which Seam created the warning. */
|
|
15544
|
+
created_at: string;
|
|
15545
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15546
|
+
message: string;
|
|
15547
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15548
|
+
warning_code: 'updating_access_times';
|
|
15549
|
+
} | {
|
|
15550
|
+
/** Date and time at which Seam created the warning. */
|
|
15551
|
+
created_at: string;
|
|
15552
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15553
|
+
message: string;
|
|
15554
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15555
|
+
warning_code: 'pulled_backup_access_code';
|
|
15556
|
+
/** ID of the original access method from which this backup access method was split, if applicable. */
|
|
15557
|
+
original_access_method_id?: string | undefined;
|
|
15558
|
+
})[];
|
|
15559
|
+
/** Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress. */
|
|
15560
|
+
pending_mutations: ({
|
|
15561
|
+
/** Date and time at which the mutation was created. */
|
|
15562
|
+
created_at: string;
|
|
15563
|
+
/** Detailed description of the mutation. */
|
|
15564
|
+
message: string;
|
|
15565
|
+
/** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */
|
|
15566
|
+
mutation_code: 'provisioning_access';
|
|
15567
|
+
/** Previous device configuration. */
|
|
15568
|
+
from: {
|
|
15569
|
+
/** Previous device IDs where access was provisioned. */
|
|
15570
|
+
device_ids: string[];
|
|
15571
|
+
};
|
|
15572
|
+
/** New device configuration. */
|
|
15573
|
+
to: {
|
|
15574
|
+
/** New device IDs where access is being provisioned. */
|
|
15575
|
+
device_ids: string[];
|
|
15576
|
+
};
|
|
15577
|
+
} | {
|
|
15578
|
+
/** Date and time at which the mutation was created. */
|
|
15579
|
+
created_at: string;
|
|
15580
|
+
/** Detailed description of the mutation. */
|
|
15581
|
+
message: string;
|
|
15582
|
+
/** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */
|
|
15583
|
+
mutation_code: 'revoking_access';
|
|
15584
|
+
/** Previous device configuration. */
|
|
15585
|
+
from: {
|
|
15586
|
+
/** Previous device IDs where access existed. */
|
|
15587
|
+
device_ids: string[];
|
|
15588
|
+
};
|
|
15589
|
+
/** New device configuration. */
|
|
15590
|
+
to: {
|
|
15591
|
+
/** New device IDs where access should remain. */
|
|
15592
|
+
device_ids: string[];
|
|
15593
|
+
};
|
|
15594
|
+
} | {
|
|
15595
|
+
/** Date and time at which the mutation was created. */
|
|
15596
|
+
created_at: string;
|
|
15597
|
+
/** Detailed description of the mutation. */
|
|
15598
|
+
message: string;
|
|
15599
|
+
/** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */
|
|
15600
|
+
mutation_code: 'updating_access_times';
|
|
15601
|
+
/** Previous access time configuration. */
|
|
15602
|
+
from: {
|
|
15603
|
+
/** Previous start time for access. */
|
|
15604
|
+
starts_at: string | null;
|
|
15605
|
+
/** Previous end time for access. */
|
|
15606
|
+
ends_at: string | null;
|
|
15607
|
+
};
|
|
15608
|
+
/** New access time configuration. */
|
|
15609
|
+
to: {
|
|
15610
|
+
/** New start time for access. */
|
|
15611
|
+
starts_at: string | null;
|
|
15612
|
+
/** New end time for access. */
|
|
15613
|
+
ends_at: string | null;
|
|
15614
|
+
};
|
|
15615
|
+
})[];
|
|
15616
|
+
/** ID of the customization profile associated with the access method. */
|
|
15617
|
+
customization_profile_id?: string | undefined;
|
|
15618
|
+
};
|
|
15619
|
+
};
|
|
15620
|
+
maxDuration: undefined;
|
|
15621
|
+
};
|
|
15495
15622
|
'/access_methods/delete': {
|
|
15496
15623
|
route: '/access_methods/delete';
|
|
15497
15624
|
method: 'DELETE' | 'POST';
|
package/package.json
CHANGED
|
@@ -33378,7 +33378,7 @@ const openapi: OpenAPISpec = {
|
|
|
33378
33378
|
'/access_codes/create': {
|
|
33379
33379
|
post: {
|
|
33380
33380
|
description:
|
|
33381
|
-
'Creates a new [access code](https://docs.seam.co/latest/
|
|
33381
|
+
'Creates a new [access code](https://docs.seam.co/latest/low-level-apis/access-codes). For granting access, we recommend [Access Grants](https://docs.seam.co/latest/use-cases/granting-access) instead: they work across both standalone smart locks and access control systems and manage the underlying codes for you. Use this low-level endpoint only when you need direct control over a code on a single device, such as setting a custom PIN value.',
|
|
33382
33382
|
operationId: 'accessCodesCreatePost',
|
|
33383
33383
|
requestBody: {
|
|
33384
33384
|
content: {
|
|
@@ -36400,7 +36400,8 @@ const openapi: OpenAPISpec = {
|
|
|
36400
36400
|
},
|
|
36401
36401
|
'/access_grants/create': {
|
|
36402
36402
|
post: {
|
|
36403
|
-
description:
|
|
36403
|
+
description:
|
|
36404
|
+
'Creates a new [Access Grant](https://docs.seam.co/latest/use-cases/granting-access/access-grants). Access Grants are the default and recommended way to grant a user access to any physical space, irrespective of the locking hardware. They work with both standalone smart locks (using `device_ids`) and access control systems (using `acs_entrance_ids` or `space_ids`), and can issue PIN codes, key cards, and mobile keys through a single request.',
|
|
36404
36405
|
operationId: 'accessGrantsCreatePost',
|
|
36405
36406
|
requestBody: {
|
|
36406
36407
|
content: {
|
|
@@ -40693,6 +40694,69 @@ const openapi: OpenAPISpec = {
|
|
|
40693
40694
|
'x-title': 'Update an Access Grant',
|
|
40694
40695
|
},
|
|
40695
40696
|
},
|
|
40697
|
+
'/access_methods/assign_card': {
|
|
40698
|
+
post: {
|
|
40699
|
+
description:
|
|
40700
|
+
'Assigns an existing card credential to a card-mode access method, identified by `card_number`.',
|
|
40701
|
+
operationId: 'accessMethodsAssignCardPost',
|
|
40702
|
+
requestBody: {
|
|
40703
|
+
content: {
|
|
40704
|
+
'application/json': {
|
|
40705
|
+
schema: {
|
|
40706
|
+
properties: {
|
|
40707
|
+
access_method_id: {
|
|
40708
|
+
description:
|
|
40709
|
+
'ID of the card-mode `access_method` to assign the card to.',
|
|
40710
|
+
format: 'uuid',
|
|
40711
|
+
type: 'string',
|
|
40712
|
+
},
|
|
40713
|
+
card_number: {
|
|
40714
|
+
description:
|
|
40715
|
+
'Card number of the card credential to assign.',
|
|
40716
|
+
type: 'string',
|
|
40717
|
+
},
|
|
40718
|
+
},
|
|
40719
|
+
required: ['access_method_id', 'card_number'],
|
|
40720
|
+
type: 'object',
|
|
40721
|
+
},
|
|
40722
|
+
},
|
|
40723
|
+
},
|
|
40724
|
+
},
|
|
40725
|
+
responses: {
|
|
40726
|
+
200: {
|
|
40727
|
+
content: {
|
|
40728
|
+
'application/json': {
|
|
40729
|
+
schema: {
|
|
40730
|
+
properties: {
|
|
40731
|
+
access_method: {
|
|
40732
|
+
$ref: '#/components/schemas/access_method',
|
|
40733
|
+
},
|
|
40734
|
+
ok: { type: 'boolean' },
|
|
40735
|
+
},
|
|
40736
|
+
required: ['access_method', 'ok'],
|
|
40737
|
+
type: 'object',
|
|
40738
|
+
},
|
|
40739
|
+
},
|
|
40740
|
+
},
|
|
40741
|
+
description: 'OK',
|
|
40742
|
+
},
|
|
40743
|
+
400: { description: 'Bad Request' },
|
|
40744
|
+
401: { description: 'Unauthorized' },
|
|
40745
|
+
},
|
|
40746
|
+
security: [
|
|
40747
|
+
{ pat_with_workspace: [] },
|
|
40748
|
+
{ console_session_with_workspace: [] },
|
|
40749
|
+
{ api_key: [] },
|
|
40750
|
+
],
|
|
40751
|
+
summary: '/access_methods/assign_card',
|
|
40752
|
+
tags: [],
|
|
40753
|
+
'x-fern-sdk-group-name': ['access_methods'],
|
|
40754
|
+
'x-fern-sdk-method-name': 'assign_card',
|
|
40755
|
+
'x-fern-sdk-return-value': 'access_method',
|
|
40756
|
+
'x-response-key': 'access_method',
|
|
40757
|
+
'x-title': 'Assign a Card to an Access Method',
|
|
40758
|
+
},
|
|
40759
|
+
},
|
|
40696
40760
|
'/access_methods/delete': {
|
|
40697
40761
|
delete: {
|
|
40698
40762
|
description: 'Deletes an access method.',
|
|
@@ -44727,7 +44791,7 @@ const openapi: OpenAPISpec = {
|
|
|
44727
44791
|
'/acs/credentials/create': {
|
|
44728
44792
|
post: {
|
|
44729
44793
|
description:
|
|
44730
|
-
'Creates a new [credential](https://docs.seam.co/latest/
|
|
44794
|
+
'Creates a new [credential](https://docs.seam.co/latest/low-level-apis/managing-credentials) for a specified [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). For granting access, we recommend [Access Grants](https://docs.seam.co/latest/use-cases/granting-access) instead: they create and manage the underlying credentials for you, across access systems and standalone smart locks alike. Use this low-level endpoint only when you need direct control over an individual ACS credential.',
|
|
44731
44795
|
operationId: 'acsCredentialsCreatePost',
|
|
44732
44796
|
requestBody: {
|
|
44733
44797
|
content: {
|
|
@@ -17800,6 +17800,141 @@ export type Routes = {
|
|
|
17800
17800
|
jsonResponse: {}
|
|
17801
17801
|
maxDuration: undefined
|
|
17802
17802
|
}
|
|
17803
|
+
'/access_methods/assign_card': {
|
|
17804
|
+
route: '/access_methods/assign_card'
|
|
17805
|
+
method: 'POST'
|
|
17806
|
+
queryParams: {}
|
|
17807
|
+
jsonBody: {}
|
|
17808
|
+
commonParams: {
|
|
17809
|
+
/** ID of the card-mode `access_method` to assign the card to. */
|
|
17810
|
+
access_method_id: string
|
|
17811
|
+
/** Card number of the card credential to assign. */
|
|
17812
|
+
card_number: string
|
|
17813
|
+
}
|
|
17814
|
+
formData: {}
|
|
17815
|
+
jsonResponse: {
|
|
17816
|
+
/** Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key. */
|
|
17817
|
+
access_method: {
|
|
17818
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
17819
|
+
workspace_id: string
|
|
17820
|
+
/** ID of the access method. */
|
|
17821
|
+
access_method_id: string
|
|
17822
|
+
/** Display name of the access method. */
|
|
17823
|
+
display_name: string
|
|
17824
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
|
|
17825
|
+
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'
|
|
17826
|
+
/** Date and time at which the access method was created. */
|
|
17827
|
+
created_at: string
|
|
17828
|
+
/** Date and time at which the access method was issued. */
|
|
17829
|
+
issued_at: string | null
|
|
17830
|
+
/** Indicates whether the access method has been issued. */
|
|
17831
|
+
is_issued: boolean
|
|
17832
|
+
/** URL of the Instant Key for mobile key access methods. */
|
|
17833
|
+
instant_key_url?: string | undefined
|
|
17834
|
+
/** Token of the client session associated with the access method. */
|
|
17835
|
+
client_session_token?: string | undefined
|
|
17836
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
17837
|
+
is_encoding_required?: boolean | undefined
|
|
17838
|
+
/** Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued. */
|
|
17839
|
+
is_ready_for_encoding?: boolean | undefined
|
|
17840
|
+
/** The actual PIN code for code access methods. */
|
|
17841
|
+
code?: (string | null) | undefined
|
|
17842
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
17843
|
+
warnings: (
|
|
17844
|
+
| {
|
|
17845
|
+
/** Date and time at which Seam created the warning. */
|
|
17846
|
+
created_at: string
|
|
17847
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17848
|
+
message: string
|
|
17849
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17850
|
+
warning_code: 'being_deleted'
|
|
17851
|
+
}
|
|
17852
|
+
| {
|
|
17853
|
+
/** Date and time at which Seam created the warning. */
|
|
17854
|
+
created_at: string
|
|
17855
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17856
|
+
message: string
|
|
17857
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17858
|
+
warning_code: 'updating_access_times'
|
|
17859
|
+
}
|
|
17860
|
+
| {
|
|
17861
|
+
/** Date and time at which Seam created the warning. */
|
|
17862
|
+
created_at: string
|
|
17863
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17864
|
+
message: string
|
|
17865
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17866
|
+
warning_code: 'pulled_backup_access_code'
|
|
17867
|
+
/** ID of the original access method from which this backup access method was split, if applicable. */
|
|
17868
|
+
original_access_method_id?: string | undefined
|
|
17869
|
+
}
|
|
17870
|
+
)[]
|
|
17871
|
+
/** Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress. */
|
|
17872
|
+
pending_mutations: (
|
|
17873
|
+
| {
|
|
17874
|
+
/** Date and time at which the mutation was created. */
|
|
17875
|
+
created_at: string
|
|
17876
|
+
/** Detailed description of the mutation. */
|
|
17877
|
+
message: string
|
|
17878
|
+
/** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */
|
|
17879
|
+
mutation_code: 'provisioning_access'
|
|
17880
|
+
/** Previous device configuration. */
|
|
17881
|
+
from: {
|
|
17882
|
+
/** Previous device IDs where access was provisioned. */
|
|
17883
|
+
device_ids: string[]
|
|
17884
|
+
}
|
|
17885
|
+
/** New device configuration. */
|
|
17886
|
+
to: {
|
|
17887
|
+
/** New device IDs where access is being provisioned. */
|
|
17888
|
+
device_ids: string[]
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
| {
|
|
17892
|
+
/** Date and time at which the mutation was created. */
|
|
17893
|
+
created_at: string
|
|
17894
|
+
/** Detailed description of the mutation. */
|
|
17895
|
+
message: string
|
|
17896
|
+
/** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */
|
|
17897
|
+
mutation_code: 'revoking_access'
|
|
17898
|
+
/** Previous device configuration. */
|
|
17899
|
+
from: {
|
|
17900
|
+
/** Previous device IDs where access existed. */
|
|
17901
|
+
device_ids: string[]
|
|
17902
|
+
}
|
|
17903
|
+
/** New device configuration. */
|
|
17904
|
+
to: {
|
|
17905
|
+
/** New device IDs where access should remain. */
|
|
17906
|
+
device_ids: string[]
|
|
17907
|
+
}
|
|
17908
|
+
}
|
|
17909
|
+
| {
|
|
17910
|
+
/** Date and time at which the mutation was created. */
|
|
17911
|
+
created_at: string
|
|
17912
|
+
/** Detailed description of the mutation. */
|
|
17913
|
+
message: string
|
|
17914
|
+
/** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */
|
|
17915
|
+
mutation_code: 'updating_access_times'
|
|
17916
|
+
/** Previous access time configuration. */
|
|
17917
|
+
from: {
|
|
17918
|
+
/** Previous start time for access. */
|
|
17919
|
+
starts_at: string | null
|
|
17920
|
+
/** Previous end time for access. */
|
|
17921
|
+
ends_at: string | null
|
|
17922
|
+
}
|
|
17923
|
+
/** New access time configuration. */
|
|
17924
|
+
to: {
|
|
17925
|
+
/** New start time for access. */
|
|
17926
|
+
starts_at: string | null
|
|
17927
|
+
/** New end time for access. */
|
|
17928
|
+
ends_at: string | null
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
)[]
|
|
17932
|
+
/** ID of the customization profile associated with the access method. */
|
|
17933
|
+
customization_profile_id?: string | undefined
|
|
17934
|
+
}
|
|
17935
|
+
}
|
|
17936
|
+
maxDuration: undefined
|
|
17937
|
+
}
|
|
17803
17938
|
'/access_methods/delete': {
|
|
17804
17939
|
route: '/access_methods/delete'
|
|
17805
17940
|
method: 'DELETE' | 'POST'
|