@seamapi/types 1.593.0 → 1.594.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 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +178 -0
- package/dist/index.cjs +79 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +102 -0
- package/lib/seam/connect/openapi.js +79 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +76 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +84 -0
- package/src/lib/seam/connect/route-types.ts +76 -0
package/dist/connect.d.cts
CHANGED
|
@@ -69806,6 +69806,108 @@ declare const _default: {
|
|
|
69806
69806
|
'x-title': string;
|
|
69807
69807
|
};
|
|
69808
69808
|
};
|
|
69809
|
+
'/access_grants/request_access_methods': {
|
|
69810
|
+
post: {
|
|
69811
|
+
description: string;
|
|
69812
|
+
operationId: string;
|
|
69813
|
+
requestBody: {
|
|
69814
|
+
content: {
|
|
69815
|
+
'application/json': {
|
|
69816
|
+
schema: {
|
|
69817
|
+
properties: {
|
|
69818
|
+
access_grant_id: {
|
|
69819
|
+
description: string;
|
|
69820
|
+
format: string;
|
|
69821
|
+
type: string;
|
|
69822
|
+
};
|
|
69823
|
+
requested_access_methods: {
|
|
69824
|
+
description: string;
|
|
69825
|
+
items: {
|
|
69826
|
+
properties: {
|
|
69827
|
+
code: {
|
|
69828
|
+
description: string;
|
|
69829
|
+
maxLength: number;
|
|
69830
|
+
minLength: number;
|
|
69831
|
+
pattern: string;
|
|
69832
|
+
type: string;
|
|
69833
|
+
};
|
|
69834
|
+
mode: {
|
|
69835
|
+
description: string;
|
|
69836
|
+
enum: string[];
|
|
69837
|
+
type: string;
|
|
69838
|
+
};
|
|
69839
|
+
};
|
|
69840
|
+
required: string[];
|
|
69841
|
+
type: string;
|
|
69842
|
+
};
|
|
69843
|
+
minItems: number;
|
|
69844
|
+
type: string;
|
|
69845
|
+
};
|
|
69846
|
+
};
|
|
69847
|
+
required: string[];
|
|
69848
|
+
type: string;
|
|
69849
|
+
};
|
|
69850
|
+
};
|
|
69851
|
+
};
|
|
69852
|
+
};
|
|
69853
|
+
responses: {
|
|
69854
|
+
200: {
|
|
69855
|
+
content: {
|
|
69856
|
+
'application/json': {
|
|
69857
|
+
schema: {
|
|
69858
|
+
properties: {
|
|
69859
|
+
access_grant: {
|
|
69860
|
+
$ref: string;
|
|
69861
|
+
};
|
|
69862
|
+
ok: {
|
|
69863
|
+
type: string;
|
|
69864
|
+
};
|
|
69865
|
+
};
|
|
69866
|
+
required: string[];
|
|
69867
|
+
type: string;
|
|
69868
|
+
};
|
|
69869
|
+
};
|
|
69870
|
+
};
|
|
69871
|
+
description: string;
|
|
69872
|
+
};
|
|
69873
|
+
400: {
|
|
69874
|
+
description: string;
|
|
69875
|
+
};
|
|
69876
|
+
401: {
|
|
69877
|
+
description: string;
|
|
69878
|
+
};
|
|
69879
|
+
};
|
|
69880
|
+
security: ({
|
|
69881
|
+
pat_with_workspace: never[];
|
|
69882
|
+
console_session_with_workspace?: never;
|
|
69883
|
+
api_key?: never;
|
|
69884
|
+
client_session_with_customer?: never;
|
|
69885
|
+
} | {
|
|
69886
|
+
console_session_with_workspace: never[];
|
|
69887
|
+
pat_with_workspace?: never;
|
|
69888
|
+
api_key?: never;
|
|
69889
|
+
client_session_with_customer?: never;
|
|
69890
|
+
} | {
|
|
69891
|
+
api_key: never[];
|
|
69892
|
+
pat_with_workspace?: never;
|
|
69893
|
+
console_session_with_workspace?: never;
|
|
69894
|
+
client_session_with_customer?: never;
|
|
69895
|
+
} | {
|
|
69896
|
+
client_session_with_customer: never[];
|
|
69897
|
+
pat_with_workspace?: never;
|
|
69898
|
+
console_session_with_workspace?: never;
|
|
69899
|
+
api_key?: never;
|
|
69900
|
+
})[];
|
|
69901
|
+
summary: string;
|
|
69902
|
+
tags: never[];
|
|
69903
|
+
'x-draft': string;
|
|
69904
|
+
'x-fern-sdk-group-name': string[];
|
|
69905
|
+
'x-fern-sdk-method-name': string;
|
|
69906
|
+
'x-fern-sdk-return-value': string;
|
|
69907
|
+
'x-response-key': string;
|
|
69908
|
+
'x-title': string;
|
|
69909
|
+
};
|
|
69910
|
+
};
|
|
69809
69911
|
'/access_grants/unmanaged/get': {
|
|
69810
69912
|
get: {
|
|
69811
69913
|
description: string;
|
|
@@ -119001,6 +119103,82 @@ type Routes = {
|
|
|
119001
119103
|
}[];
|
|
119002
119104
|
};
|
|
119003
119105
|
};
|
|
119106
|
+
'/access_grants/request_access_methods': {
|
|
119107
|
+
route: '/access_grants/request_access_methods';
|
|
119108
|
+
method: 'POST';
|
|
119109
|
+
queryParams: {};
|
|
119110
|
+
jsonBody: {};
|
|
119111
|
+
commonParams: {
|
|
119112
|
+
/** ID of the Access Grant to add access methods to. */
|
|
119113
|
+
access_grant_id: string;
|
|
119114
|
+
/** Array of requested access methods to add to the access grant. */
|
|
119115
|
+
requested_access_methods: {
|
|
119116
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
119117
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
119118
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
119119
|
+
code?: string | undefined;
|
|
119120
|
+
}[];
|
|
119121
|
+
};
|
|
119122
|
+
formData: {};
|
|
119123
|
+
jsonResponse: {
|
|
119124
|
+
/** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
|
|
119125
|
+
access_grant: {
|
|
119126
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
119127
|
+
workspace_id: string;
|
|
119128
|
+
/** ID of the Access Grant. */
|
|
119129
|
+
access_grant_id: string;
|
|
119130
|
+
/** Unique key for the access grant within the workspace. */
|
|
119131
|
+
access_grant_key?: string | undefined;
|
|
119132
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
119133
|
+
user_identity_id: string;
|
|
119134
|
+
/**
|
|
119135
|
+
* @deprecated Use `space_ids`.*/
|
|
119136
|
+
location_ids: string[];
|
|
119137
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
119138
|
+
space_ids: string[];
|
|
119139
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
119140
|
+
requested_access_methods: {
|
|
119141
|
+
/** Display name of the access method. */
|
|
119142
|
+
display_name: string;
|
|
119143
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
119144
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
119145
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
119146
|
+
code?: string | undefined;
|
|
119147
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
119148
|
+
created_at: string;
|
|
119149
|
+
/** IDs of the access methods created for the requested access method. */
|
|
119150
|
+
created_access_method_ids: string[];
|
|
119151
|
+
}[];
|
|
119152
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
119153
|
+
access_method_ids: string[];
|
|
119154
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
119155
|
+
client_session_token?: string | undefined;
|
|
119156
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
119157
|
+
name: string | null;
|
|
119158
|
+
/** Display name of the Access Grant. */
|
|
119159
|
+
display_name: string;
|
|
119160
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
119161
|
+
instant_key_url?: string | undefined;
|
|
119162
|
+
/** Date and time at which the Access Grant was created. */
|
|
119163
|
+
created_at: string;
|
|
119164
|
+
/** Date and time at which the Access Grant starts. */
|
|
119165
|
+
starts_at: string;
|
|
119166
|
+
/** Date and time at which the Access Grant ends. */
|
|
119167
|
+
ends_at: string | null;
|
|
119168
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
119169
|
+
warnings: {
|
|
119170
|
+
/** Date and time at which Seam created the warning. */
|
|
119171
|
+
created_at: string;
|
|
119172
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
119173
|
+
message: string;
|
|
119174
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
119175
|
+
warning_code: 'being_deleted';
|
|
119176
|
+
}[];
|
|
119177
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
119178
|
+
customization_profile_id?: string | undefined;
|
|
119179
|
+
};
|
|
119180
|
+
};
|
|
119181
|
+
};
|
|
119004
119182
|
'/access_grants/unmanaged/get': {
|
|
119005
119183
|
route: '/access_grants/unmanaged/get';
|
|
119006
119184
|
method: 'GET' | 'POST';
|
package/dist/index.cjs
CHANGED
|
@@ -31946,6 +31946,85 @@ var openapi_default = {
|
|
|
31946
31946
|
"x-title": "List Access Grants"
|
|
31947
31947
|
}
|
|
31948
31948
|
},
|
|
31949
|
+
"/access_grants/request_access_methods": {
|
|
31950
|
+
post: {
|
|
31951
|
+
description: "Adds additional requested access methods to an existing Access Grant.",
|
|
31952
|
+
operationId: "accessGrantsRequestAccessMethodsPost",
|
|
31953
|
+
requestBody: {
|
|
31954
|
+
content: {
|
|
31955
|
+
"application/json": {
|
|
31956
|
+
schema: {
|
|
31957
|
+
properties: {
|
|
31958
|
+
access_grant_id: {
|
|
31959
|
+
description: "ID of the Access Grant to add access methods to.",
|
|
31960
|
+
format: "uuid",
|
|
31961
|
+
type: "string"
|
|
31962
|
+
},
|
|
31963
|
+
requested_access_methods: {
|
|
31964
|
+
description: "Array of requested access methods to add to the access grant.",
|
|
31965
|
+
items: {
|
|
31966
|
+
properties: {
|
|
31967
|
+
code: {
|
|
31968
|
+
description: "Specific PIN code to use for this access method. Only applicable when mode is 'code'.",
|
|
31969
|
+
maxLength: 9,
|
|
31970
|
+
minLength: 4,
|
|
31971
|
+
pattern: "^\\d+$",
|
|
31972
|
+
type: "string"
|
|
31973
|
+
},
|
|
31974
|
+
mode: {
|
|
31975
|
+
description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
|
|
31976
|
+
enum: ["code", "card", "mobile_key"],
|
|
31977
|
+
type: "string"
|
|
31978
|
+
}
|
|
31979
|
+
},
|
|
31980
|
+
required: ["mode"],
|
|
31981
|
+
type: "object"
|
|
31982
|
+
},
|
|
31983
|
+
minItems: 1,
|
|
31984
|
+
type: "array"
|
|
31985
|
+
}
|
|
31986
|
+
},
|
|
31987
|
+
required: ["access_grant_id", "requested_access_methods"],
|
|
31988
|
+
type: "object"
|
|
31989
|
+
}
|
|
31990
|
+
}
|
|
31991
|
+
}
|
|
31992
|
+
},
|
|
31993
|
+
responses: {
|
|
31994
|
+
200: {
|
|
31995
|
+
content: {
|
|
31996
|
+
"application/json": {
|
|
31997
|
+
schema: {
|
|
31998
|
+
properties: {
|
|
31999
|
+
access_grant: { $ref: "#/components/schemas/access_grant" },
|
|
32000
|
+
ok: { type: "boolean" }
|
|
32001
|
+
},
|
|
32002
|
+
required: ["access_grant", "ok"],
|
|
32003
|
+
type: "object"
|
|
32004
|
+
}
|
|
32005
|
+
}
|
|
32006
|
+
},
|
|
32007
|
+
description: "OK"
|
|
32008
|
+
},
|
|
32009
|
+
400: { description: "Bad Request" },
|
|
32010
|
+
401: { description: "Unauthorized" }
|
|
32011
|
+
},
|
|
32012
|
+
security: [
|
|
32013
|
+
{ pat_with_workspace: [] },
|
|
32014
|
+
{ console_session_with_workspace: [] },
|
|
32015
|
+
{ api_key: [] },
|
|
32016
|
+
{ client_session_with_customer: [] }
|
|
32017
|
+
],
|
|
32018
|
+
summary: "/access_grants/request_access_methods",
|
|
32019
|
+
tags: [],
|
|
32020
|
+
"x-draft": "Early access.",
|
|
32021
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
32022
|
+
"x-fern-sdk-method-name": "request_access_methods",
|
|
32023
|
+
"x-fern-sdk-return-value": "access_grant",
|
|
32024
|
+
"x-response-key": "access_grant",
|
|
32025
|
+
"x-title": "Add Requested Access Methods to Access Grant"
|
|
32026
|
+
}
|
|
32027
|
+
},
|
|
31949
32028
|
"/access_grants/unmanaged/get": {
|
|
31950
32029
|
get: {
|
|
31951
32030
|
description: "Get an unmanaged Access Grant (where is_managed = false).",
|