@seamapi/types 1.584.0 → 1.585.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 +2789 -396
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2916 -336
- package/dist/index.cjs +2789 -396
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +99 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +13 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +59 -0
- package/lib/seam/connect/models/access-grants/access-method.js +12 -0
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +109 -0
- package/lib/seam/connect/models/user-identities/user-identity.js +10 -0
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +2583 -336
- package/lib/seam/connect/openapi.js +3484 -1123
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +333 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +3 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +16 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +15 -0
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +3354 -729
- package/src/lib/seam/connect/route-types.ts +339 -0
|
@@ -11819,6 +11819,131 @@ export type Routes = {
|
|
|
11819
11819
|
}[];
|
|
11820
11820
|
};
|
|
11821
11821
|
};
|
|
11822
|
+
'/access_grants/unmanaged/get': {
|
|
11823
|
+
route: '/access_grants/unmanaged/get';
|
|
11824
|
+
method: 'GET' | 'POST';
|
|
11825
|
+
queryParams: {};
|
|
11826
|
+
jsonBody: {};
|
|
11827
|
+
commonParams: {
|
|
11828
|
+
/** ID of unmanaged Access Grant to get. */
|
|
11829
|
+
access_grant_id: string;
|
|
11830
|
+
};
|
|
11831
|
+
formData: {};
|
|
11832
|
+
jsonResponse: {
|
|
11833
|
+
/** Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys. */
|
|
11834
|
+
access_grant: {
|
|
11835
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
11836
|
+
workspace_id: string;
|
|
11837
|
+
/** ID of the Access Grant. */
|
|
11838
|
+
access_grant_id: string;
|
|
11839
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
11840
|
+
user_identity_id: string;
|
|
11841
|
+
/**
|
|
11842
|
+
* @deprecated Use `space_ids`.*/
|
|
11843
|
+
location_ids: string[];
|
|
11844
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
11845
|
+
space_ids: string[];
|
|
11846
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
11847
|
+
requested_access_methods: {
|
|
11848
|
+
/** Display name of the access method. */
|
|
11849
|
+
display_name: string;
|
|
11850
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11851
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
11852
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11853
|
+
code?: string | undefined;
|
|
11854
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
11855
|
+
created_at: string;
|
|
11856
|
+
/** IDs of the access methods created for the requested access method. */
|
|
11857
|
+
created_access_method_ids: string[];
|
|
11858
|
+
}[];
|
|
11859
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
11860
|
+
access_method_ids: string[];
|
|
11861
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
11862
|
+
name: string | null;
|
|
11863
|
+
/** Display name of the Access Grant. */
|
|
11864
|
+
display_name: string;
|
|
11865
|
+
/** Date and time at which the Access Grant was created. */
|
|
11866
|
+
created_at: string;
|
|
11867
|
+
/** Date and time at which the Access Grant starts. */
|
|
11868
|
+
starts_at: string;
|
|
11869
|
+
/** Date and time at which the Access Grant ends. */
|
|
11870
|
+
ends_at: string | null;
|
|
11871
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
11872
|
+
warnings: {
|
|
11873
|
+
/** Date and time at which Seam created the warning. */
|
|
11874
|
+
created_at: string;
|
|
11875
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11876
|
+
message: string;
|
|
11877
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11878
|
+
warning_code: 'being_deleted';
|
|
11879
|
+
}[];
|
|
11880
|
+
};
|
|
11881
|
+
};
|
|
11882
|
+
};
|
|
11883
|
+
'/access_grants/unmanaged/list': {
|
|
11884
|
+
route: '/access_grants/unmanaged/list';
|
|
11885
|
+
method: 'GET' | 'POST';
|
|
11886
|
+
queryParams: {};
|
|
11887
|
+
jsonBody: {};
|
|
11888
|
+
commonParams: {
|
|
11889
|
+
/** ID of user identity by which you want to filter the list of unmanaged Access Grants. */
|
|
11890
|
+
user_identity_id?: string | undefined;
|
|
11891
|
+
/** ID of the access system by which you want to filter the list of unmanaged Access Grants. */
|
|
11892
|
+
acs_system_id?: string | undefined;
|
|
11893
|
+
/** ID of the entrance by which you want to filter the list of unmanaged Access Grants. */
|
|
11894
|
+
acs_entrance_id?: string | undefined;
|
|
11895
|
+
};
|
|
11896
|
+
formData: {};
|
|
11897
|
+
jsonResponse: {
|
|
11898
|
+
access_grants: {
|
|
11899
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
11900
|
+
workspace_id: string;
|
|
11901
|
+
/** ID of the Access Grant. */
|
|
11902
|
+
access_grant_id: string;
|
|
11903
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
11904
|
+
user_identity_id: string;
|
|
11905
|
+
/**
|
|
11906
|
+
* @deprecated Use `space_ids`.*/
|
|
11907
|
+
location_ids: string[];
|
|
11908
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
11909
|
+
space_ids: string[];
|
|
11910
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
11911
|
+
requested_access_methods: {
|
|
11912
|
+
/** Display name of the access method. */
|
|
11913
|
+
display_name: string;
|
|
11914
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
11915
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
11916
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
11917
|
+
code?: string | undefined;
|
|
11918
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
11919
|
+
created_at: string;
|
|
11920
|
+
/** IDs of the access methods created for the requested access method. */
|
|
11921
|
+
created_access_method_ids: string[];
|
|
11922
|
+
}[];
|
|
11923
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
11924
|
+
access_method_ids: string[];
|
|
11925
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
11926
|
+
name: string | null;
|
|
11927
|
+
/** Display name of the Access Grant. */
|
|
11928
|
+
display_name: string;
|
|
11929
|
+
/** Date and time at which the Access Grant was created. */
|
|
11930
|
+
created_at: string;
|
|
11931
|
+
/** Date and time at which the Access Grant starts. */
|
|
11932
|
+
starts_at: string;
|
|
11933
|
+
/** Date and time at which the Access Grant ends. */
|
|
11934
|
+
ends_at: string | null;
|
|
11935
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
11936
|
+
warnings: {
|
|
11937
|
+
/** Date and time at which Seam created the warning. */
|
|
11938
|
+
created_at: string;
|
|
11939
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11940
|
+
message: string;
|
|
11941
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11942
|
+
warning_code: 'being_deleted';
|
|
11943
|
+
}[];
|
|
11944
|
+
}[];
|
|
11945
|
+
};
|
|
11946
|
+
};
|
|
11822
11947
|
'/access_grants/update': {
|
|
11823
11948
|
route: '/access_grants/update';
|
|
11824
11949
|
method: 'POST' | 'PATCH';
|
|
@@ -20298,6 +20423,97 @@ export type Routes = {
|
|
|
20298
20423
|
}[];
|
|
20299
20424
|
};
|
|
20300
20425
|
};
|
|
20426
|
+
'/access_methods/unmanaged/get': {
|
|
20427
|
+
route: '/access_methods/unmanaged/get';
|
|
20428
|
+
method: 'GET' | 'POST';
|
|
20429
|
+
queryParams: {};
|
|
20430
|
+
jsonBody: {};
|
|
20431
|
+
commonParams: {
|
|
20432
|
+
/** ID of unmanaged access method to get. */
|
|
20433
|
+
access_method_id: string;
|
|
20434
|
+
};
|
|
20435
|
+
formData: {};
|
|
20436
|
+
jsonResponse: {
|
|
20437
|
+
/** Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys. */
|
|
20438
|
+
access_method: {
|
|
20439
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
20440
|
+
workspace_id: string;
|
|
20441
|
+
/** ID of the access method. */
|
|
20442
|
+
access_method_id: string;
|
|
20443
|
+
/** Display name of the access method. */
|
|
20444
|
+
display_name: string;
|
|
20445
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
20446
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
20447
|
+
/** Date and time at which the access method was created. */
|
|
20448
|
+
created_at: string;
|
|
20449
|
+
/** Date and time at which the access method was issued. */
|
|
20450
|
+
issued_at: string | null;
|
|
20451
|
+
/** Indicates whether the access method has been issued. */
|
|
20452
|
+
is_issued: boolean;
|
|
20453
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
20454
|
+
is_encoding_required?: boolean | undefined;
|
|
20455
|
+
/** The actual PIN code for code access methods. */
|
|
20456
|
+
code?: (string | null) | undefined;
|
|
20457
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
20458
|
+
warnings: {
|
|
20459
|
+
/** Date and time at which Seam created the warning. */
|
|
20460
|
+
created_at: string;
|
|
20461
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
20462
|
+
message: string;
|
|
20463
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
20464
|
+
warning_code: 'being_deleted';
|
|
20465
|
+
}[];
|
|
20466
|
+
};
|
|
20467
|
+
};
|
|
20468
|
+
};
|
|
20469
|
+
'/access_methods/unmanaged/list': {
|
|
20470
|
+
route: '/access_methods/unmanaged/list';
|
|
20471
|
+
method: 'GET' | 'POST';
|
|
20472
|
+
queryParams: {};
|
|
20473
|
+
jsonBody: {};
|
|
20474
|
+
commonParams: {
|
|
20475
|
+
/** ID of Access Grant to list unmanaged access methods for. */
|
|
20476
|
+
access_grant_id: string;
|
|
20477
|
+
/** ID of the device for which you want to retrieve all unmanaged access methods. */
|
|
20478
|
+
device_id?: string | undefined;
|
|
20479
|
+
/** ID of the entrance for which you want to retrieve all unmanaged access methods. */
|
|
20480
|
+
acs_entrance_id?: string | undefined;
|
|
20481
|
+
/** ID of the space for which you want to retrieve all unmanaged access methods. */
|
|
20482
|
+
space_id?: string | undefined;
|
|
20483
|
+
};
|
|
20484
|
+
formData: {};
|
|
20485
|
+
jsonResponse: {
|
|
20486
|
+
access_methods: {
|
|
20487
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
20488
|
+
workspace_id: string;
|
|
20489
|
+
/** ID of the access method. */
|
|
20490
|
+
access_method_id: string;
|
|
20491
|
+
/** Display name of the access method. */
|
|
20492
|
+
display_name: string;
|
|
20493
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
20494
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
20495
|
+
/** Date and time at which the access method was created. */
|
|
20496
|
+
created_at: string;
|
|
20497
|
+
/** Date and time at which the access method was issued. */
|
|
20498
|
+
issued_at: string | null;
|
|
20499
|
+
/** Indicates whether the access method has been issued. */
|
|
20500
|
+
is_issued: boolean;
|
|
20501
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
20502
|
+
is_encoding_required?: boolean | undefined;
|
|
20503
|
+
/** The actual PIN code for code access methods. */
|
|
20504
|
+
code?: (string | null) | undefined;
|
|
20505
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
20506
|
+
warnings: {
|
|
20507
|
+
/** Date and time at which Seam created the warning. */
|
|
20508
|
+
created_at: string;
|
|
20509
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
20510
|
+
message: string;
|
|
20511
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
20512
|
+
warning_code: 'being_deleted';
|
|
20513
|
+
}[];
|
|
20514
|
+
}[];
|
|
20515
|
+
};
|
|
20516
|
+
};
|
|
20301
20517
|
'/acs/access_groups/add_user': {
|
|
20302
20518
|
route: '/acs/access_groups/add_user';
|
|
20303
20519
|
method: 'PUT' | 'POST';
|
|
@@ -79625,6 +79841,123 @@ export type Routes = {
|
|
|
79625
79841
|
formData: {};
|
|
79626
79842
|
jsonResponse: {};
|
|
79627
79843
|
};
|
|
79844
|
+
'/user_identities/unmanaged/get': {
|
|
79845
|
+
route: '/user_identities/unmanaged/get';
|
|
79846
|
+
method: 'GET' | 'POST';
|
|
79847
|
+
queryParams: {};
|
|
79848
|
+
jsonBody: {};
|
|
79849
|
+
commonParams: {
|
|
79850
|
+
/** ID of the unmanaged user identity that you want to get. */
|
|
79851
|
+
user_identity_id: string;
|
|
79852
|
+
};
|
|
79853
|
+
formData: {};
|
|
79854
|
+
jsonResponse: {
|
|
79855
|
+
/** Represents an unmanaged user identity. Unmanaged user identities do not have keys. */
|
|
79856
|
+
user_identity: {
|
|
79857
|
+
/** ID of the user identity. */
|
|
79858
|
+
user_identity_id: string;
|
|
79859
|
+
/** Unique email address for the user identity. */
|
|
79860
|
+
email_address: string | null;
|
|
79861
|
+
/** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
|
|
79862
|
+
phone_number: string | null;
|
|
79863
|
+
display_name: string;
|
|
79864
|
+
full_name: string | null;
|
|
79865
|
+
/** Date and time at which the user identity was created. */
|
|
79866
|
+
created_at: string;
|
|
79867
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
|
|
79868
|
+
workspace_id: string;
|
|
79869
|
+
/** Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
79870
|
+
errors: {
|
|
79871
|
+
/** Date and time at which Seam created the error. */
|
|
79872
|
+
created_at: string;
|
|
79873
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
79874
|
+
message: string;
|
|
79875
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
79876
|
+
error_code: 'issue_with_acs_user';
|
|
79877
|
+
/** ID of the access system user that has an issue. */
|
|
79878
|
+
acs_user_id: string;
|
|
79879
|
+
/** ID of the access system that the user identity is associated with. */
|
|
79880
|
+
acs_system_id: string;
|
|
79881
|
+
}[];
|
|
79882
|
+
/** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
79883
|
+
warnings: ({
|
|
79884
|
+
/** Date and time at which Seam created the warning. */
|
|
79885
|
+
created_at: string;
|
|
79886
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79887
|
+
message: string;
|
|
79888
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79889
|
+
warning_code: 'being_deleted';
|
|
79890
|
+
} | {
|
|
79891
|
+
/** Date and time at which Seam created the warning. */
|
|
79892
|
+
created_at: string;
|
|
79893
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79894
|
+
message: string;
|
|
79895
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79896
|
+
warning_code: 'acs_user_profile_does_not_match_user_identity';
|
|
79897
|
+
})[];
|
|
79898
|
+
/** Array of access system user IDs associated with the user identity. */
|
|
79899
|
+
acs_user_ids: string[];
|
|
79900
|
+
};
|
|
79901
|
+
};
|
|
79902
|
+
};
|
|
79903
|
+
'/user_identities/unmanaged/list': {
|
|
79904
|
+
route: '/user_identities/unmanaged/list';
|
|
79905
|
+
method: 'GET' | 'POST';
|
|
79906
|
+
queryParams: {};
|
|
79907
|
+
jsonBody: {};
|
|
79908
|
+
commonParams: {
|
|
79909
|
+
/** String for which to search. Filters returned unmanaged user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address` or `user_identity_id`. */
|
|
79910
|
+
search?: string | undefined;
|
|
79911
|
+
};
|
|
79912
|
+
formData: {};
|
|
79913
|
+
jsonResponse: {
|
|
79914
|
+
user_identities: {
|
|
79915
|
+
/** ID of the user identity. */
|
|
79916
|
+
user_identity_id: string;
|
|
79917
|
+
/** Unique email address for the user identity. */
|
|
79918
|
+
email_address: string | null;
|
|
79919
|
+
/** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
|
|
79920
|
+
phone_number: string | null;
|
|
79921
|
+
display_name: string;
|
|
79922
|
+
full_name: string | null;
|
|
79923
|
+
/** Date and time at which the user identity was created. */
|
|
79924
|
+
created_at: string;
|
|
79925
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
|
|
79926
|
+
workspace_id: string;
|
|
79927
|
+
/** Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
|
|
79928
|
+
errors: {
|
|
79929
|
+
/** Date and time at which Seam created the error. */
|
|
79930
|
+
created_at: string;
|
|
79931
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
79932
|
+
message: string;
|
|
79933
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
79934
|
+
error_code: 'issue_with_acs_user';
|
|
79935
|
+
/** ID of the access system user that has an issue. */
|
|
79936
|
+
acs_user_id: string;
|
|
79937
|
+
/** ID of the access system that the user identity is associated with. */
|
|
79938
|
+
acs_system_id: string;
|
|
79939
|
+
}[];
|
|
79940
|
+
/** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
|
|
79941
|
+
warnings: ({
|
|
79942
|
+
/** Date and time at which Seam created the warning. */
|
|
79943
|
+
created_at: string;
|
|
79944
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79945
|
+
message: string;
|
|
79946
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79947
|
+
warning_code: 'being_deleted';
|
|
79948
|
+
} | {
|
|
79949
|
+
/** Date and time at which Seam created the warning. */
|
|
79950
|
+
created_at: string;
|
|
79951
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79952
|
+
message: string;
|
|
79953
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79954
|
+
warning_code: 'acs_user_profile_does_not_match_user_identity';
|
|
79955
|
+
})[];
|
|
79956
|
+
/** Array of access system user IDs associated with the user identity. */
|
|
79957
|
+
acs_user_ids: string[];
|
|
79958
|
+
}[];
|
|
79959
|
+
};
|
|
79960
|
+
};
|
|
79628
79961
|
'/user_identities/update': {
|
|
79629
79962
|
route: '/user_identities/update';
|
|
79630
79963
|
method: 'PATCH' | 'POST';
|
package/package.json
CHANGED
|
@@ -119,3 +119,19 @@ export const access_grant = z.object({
|
|
|
119
119
|
`)
|
|
120
120
|
|
|
121
121
|
export type AccessGrant = z.infer<typeof access_grant>
|
|
122
|
+
|
|
123
|
+
// Unmanaged access grant schema - excludes client sessions, instant keys, customization profiles, and keys
|
|
124
|
+
export const unmanaged_access_grant = access_grant.omit({
|
|
125
|
+
client_session_token: true,
|
|
126
|
+
instant_key_url: true,
|
|
127
|
+
customization_profile_id: true,
|
|
128
|
+
access_grant_key: true,
|
|
129
|
+
}).describe(`
|
|
130
|
+
---
|
|
131
|
+
draft: Early access.
|
|
132
|
+
route_path: /access_grants/unmanaged
|
|
133
|
+
---
|
|
134
|
+
Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys.
|
|
135
|
+
`)
|
|
136
|
+
|
|
137
|
+
export type UnmanagedAccessGrant = z.infer<typeof unmanaged_access_grant>
|
|
@@ -100,3 +100,18 @@ export const access_method = z.object({
|
|
|
100
100
|
`)
|
|
101
101
|
|
|
102
102
|
export type AccessMethod = z.infer<typeof access_method>
|
|
103
|
+
|
|
104
|
+
// Unmanaged access method schema - excludes client sessions, instant keys, customization profiles, and keys
|
|
105
|
+
export const unmanaged_access_method = access_method.omit({
|
|
106
|
+
instant_key_url: true,
|
|
107
|
+
client_session_token: true,
|
|
108
|
+
customization_profile_id: true,
|
|
109
|
+
}).describe(`
|
|
110
|
+
---
|
|
111
|
+
draft: Early access.
|
|
112
|
+
route_path: /access_methods/unmanaged
|
|
113
|
+
---
|
|
114
|
+
Represents an unmanaged access method. Unmanaged access methods do not have client sessions, instant keys, customization profiles, or keys.
|
|
115
|
+
`)
|
|
116
|
+
|
|
117
|
+
export type UnmanagedAccessMethod = z.infer<typeof unmanaged_access_method>
|
|
@@ -156,3 +156,16 @@ export const user_identity = z.object({
|
|
|
156
156
|
`)
|
|
157
157
|
|
|
158
158
|
export type UserIdentity = z.output<typeof user_identity>
|
|
159
|
+
|
|
160
|
+
// Unmanaged user identity schema - excludes keys since unmanaged user identities cannot have keys
|
|
161
|
+
export const unmanaged_user_identity = user_identity.omit({
|
|
162
|
+
user_identity_key: true,
|
|
163
|
+
}).describe(`
|
|
164
|
+
---
|
|
165
|
+
draft: Early access.
|
|
166
|
+
route_path: /user_identities/unmanaged
|
|
167
|
+
---
|
|
168
|
+
Represents an unmanaged user identity. Unmanaged user identities do not have keys.
|
|
169
|
+
`)
|
|
170
|
+
|
|
171
|
+
export type UnmanagedUserIdentity = z.output<typeof unmanaged_user_identity>
|