@seamapi/types 1.630.0 → 1.632.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 +86 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +202 -0
- package/dist/index.cjs +86 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +135 -0
- package/lib/seam/connect/openapi.js +82 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +67 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +82 -0
- package/src/lib/seam/connect/route-types.ts +67 -0
package/dist/connect.d.cts
CHANGED
|
@@ -72794,14 +72794,22 @@ declare const _default: {
|
|
|
72794
72794
|
pat_with_workspace: never[];
|
|
72795
72795
|
console_session_with_workspace?: never;
|
|
72796
72796
|
api_key?: never;
|
|
72797
|
+
client_session_with_customer?: never;
|
|
72797
72798
|
} | {
|
|
72798
72799
|
console_session_with_workspace: never[];
|
|
72799
72800
|
pat_with_workspace?: never;
|
|
72800
72801
|
api_key?: never;
|
|
72802
|
+
client_session_with_customer?: never;
|
|
72801
72803
|
} | {
|
|
72802
72804
|
api_key: never[];
|
|
72803
72805
|
pat_with_workspace?: never;
|
|
72804
72806
|
console_session_with_workspace?: never;
|
|
72807
|
+
client_session_with_customer?: never;
|
|
72808
|
+
} | {
|
|
72809
|
+
client_session_with_customer: never[];
|
|
72810
|
+
pat_with_workspace?: never;
|
|
72811
|
+
console_session_with_workspace?: never;
|
|
72812
|
+
api_key?: never;
|
|
72805
72813
|
})[];
|
|
72806
72814
|
summary: string;
|
|
72807
72815
|
tags: never[];
|
|
@@ -73051,14 +73059,22 @@ declare const _default: {
|
|
|
73051
73059
|
pat_with_workspace: never[];
|
|
73052
73060
|
console_session_with_workspace?: never;
|
|
73053
73061
|
api_key?: never;
|
|
73062
|
+
client_session_with_customer?: never;
|
|
73054
73063
|
} | {
|
|
73055
73064
|
console_session_with_workspace: never[];
|
|
73056
73065
|
pat_with_workspace?: never;
|
|
73057
73066
|
api_key?: never;
|
|
73067
|
+
client_session_with_customer?: never;
|
|
73058
73068
|
} | {
|
|
73059
73069
|
api_key: never[];
|
|
73060
73070
|
pat_with_workspace?: never;
|
|
73061
73071
|
console_session_with_workspace?: never;
|
|
73072
|
+
client_session_with_customer?: never;
|
|
73073
|
+
} | {
|
|
73074
|
+
client_session_with_customer: never[];
|
|
73075
|
+
pat_with_workspace?: never;
|
|
73076
|
+
console_session_with_workspace?: never;
|
|
73077
|
+
api_key?: never;
|
|
73062
73078
|
})[];
|
|
73063
73079
|
summary: string;
|
|
73064
73080
|
tags: never[];
|
|
@@ -93844,6 +93860,109 @@ declare const _default: {
|
|
|
93844
93860
|
'x-undocumented': string;
|
|
93845
93861
|
};
|
|
93846
93862
|
};
|
|
93863
|
+
'/seam/customer/v1/access_grants/list': {
|
|
93864
|
+
get: {
|
|
93865
|
+
description: string;
|
|
93866
|
+
operationId: string;
|
|
93867
|
+
parameters: never[];
|
|
93868
|
+
responses: {
|
|
93869
|
+
200: {
|
|
93870
|
+
content: {
|
|
93871
|
+
'application/json': {
|
|
93872
|
+
schema: {
|
|
93873
|
+
properties: {
|
|
93874
|
+
access_grants: {
|
|
93875
|
+
items: {
|
|
93876
|
+
$ref: string;
|
|
93877
|
+
};
|
|
93878
|
+
type: string;
|
|
93879
|
+
};
|
|
93880
|
+
ok: {
|
|
93881
|
+
type: string;
|
|
93882
|
+
};
|
|
93883
|
+
};
|
|
93884
|
+
required: string[];
|
|
93885
|
+
type: string;
|
|
93886
|
+
};
|
|
93887
|
+
};
|
|
93888
|
+
};
|
|
93889
|
+
description: string;
|
|
93890
|
+
};
|
|
93891
|
+
400: {
|
|
93892
|
+
description: string;
|
|
93893
|
+
};
|
|
93894
|
+
401: {
|
|
93895
|
+
description: string;
|
|
93896
|
+
};
|
|
93897
|
+
};
|
|
93898
|
+
security: {
|
|
93899
|
+
client_session_with_customer: never[];
|
|
93900
|
+
}[];
|
|
93901
|
+
summary: string;
|
|
93902
|
+
tags: never[];
|
|
93903
|
+
'x-fern-sdk-group-name': string[];
|
|
93904
|
+
'x-fern-sdk-method-name': string;
|
|
93905
|
+
'x-fern-sdk-return-value': string;
|
|
93906
|
+
'x-response-key': string;
|
|
93907
|
+
'x-title': string;
|
|
93908
|
+
'x-undocumented': string;
|
|
93909
|
+
};
|
|
93910
|
+
post: {
|
|
93911
|
+
description: string;
|
|
93912
|
+
operationId: string;
|
|
93913
|
+
requestBody: {
|
|
93914
|
+
content: {
|
|
93915
|
+
'application/json': {
|
|
93916
|
+
schema: {
|
|
93917
|
+
properties: {};
|
|
93918
|
+
type: string;
|
|
93919
|
+
};
|
|
93920
|
+
};
|
|
93921
|
+
};
|
|
93922
|
+
};
|
|
93923
|
+
responses: {
|
|
93924
|
+
200: {
|
|
93925
|
+
content: {
|
|
93926
|
+
'application/json': {
|
|
93927
|
+
schema: {
|
|
93928
|
+
properties: {
|
|
93929
|
+
access_grants: {
|
|
93930
|
+
items: {
|
|
93931
|
+
$ref: string;
|
|
93932
|
+
};
|
|
93933
|
+
type: string;
|
|
93934
|
+
};
|
|
93935
|
+
ok: {
|
|
93936
|
+
type: string;
|
|
93937
|
+
};
|
|
93938
|
+
};
|
|
93939
|
+
required: string[];
|
|
93940
|
+
type: string;
|
|
93941
|
+
};
|
|
93942
|
+
};
|
|
93943
|
+
};
|
|
93944
|
+
description: string;
|
|
93945
|
+
};
|
|
93946
|
+
400: {
|
|
93947
|
+
description: string;
|
|
93948
|
+
};
|
|
93949
|
+
401: {
|
|
93950
|
+
description: string;
|
|
93951
|
+
};
|
|
93952
|
+
};
|
|
93953
|
+
security: {
|
|
93954
|
+
client_session_with_customer: never[];
|
|
93955
|
+
}[];
|
|
93956
|
+
summary: string;
|
|
93957
|
+
tags: never[];
|
|
93958
|
+
'x-fern-sdk-group-name': string[];
|
|
93959
|
+
'x-fern-sdk-method-name': string;
|
|
93960
|
+
'x-fern-sdk-return-value': string;
|
|
93961
|
+
'x-response-key': string;
|
|
93962
|
+
'x-title': string;
|
|
93963
|
+
'x-undocumented': string;
|
|
93964
|
+
};
|
|
93965
|
+
};
|
|
93847
93966
|
'/seam/customer/v1/automation_runs/list': {
|
|
93848
93967
|
get: {
|
|
93849
93968
|
description: string;
|
|
@@ -106170,14 +106289,22 @@ declare const _default: {
|
|
|
106170
106289
|
api_key: never[];
|
|
106171
106290
|
pat_with_workspace?: never;
|
|
106172
106291
|
console_session_with_workspace?: never;
|
|
106292
|
+
client_session_with_customer?: never;
|
|
106173
106293
|
} | {
|
|
106174
106294
|
pat_with_workspace: never[];
|
|
106175
106295
|
api_key?: never;
|
|
106176
106296
|
console_session_with_workspace?: never;
|
|
106297
|
+
client_session_with_customer?: never;
|
|
106177
106298
|
} | {
|
|
106178
106299
|
console_session_with_workspace: never[];
|
|
106179
106300
|
api_key?: never;
|
|
106180
106301
|
pat_with_workspace?: never;
|
|
106302
|
+
client_session_with_customer?: never;
|
|
106303
|
+
} | {
|
|
106304
|
+
client_session_with_customer: never[];
|
|
106305
|
+
api_key?: never;
|
|
106306
|
+
pat_with_workspace?: never;
|
|
106307
|
+
console_session_with_workspace?: never;
|
|
106181
106308
|
})[];
|
|
106182
106309
|
summary: string;
|
|
106183
106310
|
tags: string[];
|
|
@@ -106250,14 +106377,22 @@ declare const _default: {
|
|
|
106250
106377
|
api_key: never[];
|
|
106251
106378
|
pat_with_workspace?: never;
|
|
106252
106379
|
console_session_with_workspace?: never;
|
|
106380
|
+
client_session_with_customer?: never;
|
|
106253
106381
|
} | {
|
|
106254
106382
|
pat_with_workspace: never[];
|
|
106255
106383
|
api_key?: never;
|
|
106256
106384
|
console_session_with_workspace?: never;
|
|
106385
|
+
client_session_with_customer?: never;
|
|
106257
106386
|
} | {
|
|
106258
106387
|
console_session_with_workspace: never[];
|
|
106259
106388
|
api_key?: never;
|
|
106260
106389
|
pat_with_workspace?: never;
|
|
106390
|
+
client_session_with_customer?: never;
|
|
106391
|
+
} | {
|
|
106392
|
+
client_session_with_customer: never[];
|
|
106393
|
+
api_key?: never;
|
|
106394
|
+
pat_with_workspace?: never;
|
|
106395
|
+
console_session_with_workspace?: never;
|
|
106261
106396
|
})[];
|
|
106262
106397
|
summary: string;
|
|
106263
106398
|
tags: string[];
|
|
@@ -167918,6 +168053,73 @@ type Routes = {
|
|
|
167918
168053
|
};
|
|
167919
168054
|
};
|
|
167920
168055
|
};
|
|
168056
|
+
'/seam/customer/v1/access_grants/list': {
|
|
168057
|
+
route: '/seam/customer/v1/access_grants/list';
|
|
168058
|
+
method: 'GET' | 'POST';
|
|
168059
|
+
queryParams: {};
|
|
168060
|
+
jsonBody: {};
|
|
168061
|
+
commonParams: {};
|
|
168062
|
+
formData: {};
|
|
168063
|
+
jsonResponse: {
|
|
168064
|
+
access_grants: {
|
|
168065
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
168066
|
+
workspace_id: string;
|
|
168067
|
+
/** ID of the Access Grant. */
|
|
168068
|
+
access_grant_id: string;
|
|
168069
|
+
/** Unique key for the access grant within the workspace. */
|
|
168070
|
+
access_grant_key?: string | undefined;
|
|
168071
|
+
/** Reservation key for the access grant. */
|
|
168072
|
+
reservation_key?: string | undefined;
|
|
168073
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
168074
|
+
user_identity_id: string;
|
|
168075
|
+
/**
|
|
168076
|
+
* @deprecated Use `space_ids`.*/
|
|
168077
|
+
location_ids: string[];
|
|
168078
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
168079
|
+
space_ids: string[];
|
|
168080
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
168081
|
+
requested_access_methods: {
|
|
168082
|
+
/** Display name of the access method. */
|
|
168083
|
+
display_name: string;
|
|
168084
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
168085
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
168086
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
168087
|
+
code?: string | undefined;
|
|
168088
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
168089
|
+
created_at: string;
|
|
168090
|
+
/** IDs of the access methods created for the requested access method. */
|
|
168091
|
+
created_access_method_ids: string[];
|
|
168092
|
+
}[];
|
|
168093
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
168094
|
+
access_method_ids: string[];
|
|
168095
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
168096
|
+
client_session_token?: string | undefined;
|
|
168097
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
168098
|
+
name: string | null;
|
|
168099
|
+
/** Display name of the Access Grant. */
|
|
168100
|
+
display_name: string;
|
|
168101
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
168102
|
+
instant_key_url?: string | undefined;
|
|
168103
|
+
/** Date and time at which the Access Grant was created. */
|
|
168104
|
+
created_at: string;
|
|
168105
|
+
/** Date and time at which the Access Grant starts. */
|
|
168106
|
+
starts_at: string;
|
|
168107
|
+
/** Date and time at which the Access Grant ends. */
|
|
168108
|
+
ends_at: string | null;
|
|
168109
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
168110
|
+
warnings: {
|
|
168111
|
+
/** Date and time at which Seam created the warning. */
|
|
168112
|
+
created_at: string;
|
|
168113
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
168114
|
+
message: string;
|
|
168115
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
168116
|
+
warning_code: 'being_deleted';
|
|
168117
|
+
}[];
|
|
168118
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
168119
|
+
customization_profile_id?: string | undefined;
|
|
168120
|
+
}[];
|
|
168121
|
+
};
|
|
168122
|
+
};
|
|
167921
168123
|
'/seam/customer/v1/automation_runs/list': {
|
|
167922
168124
|
route: '/seam/customer/v1/automation_runs/list';
|
|
167923
168125
|
method: 'GET' | 'POST';
|
package/dist/index.cjs
CHANGED
|
@@ -34110,7 +34110,8 @@ var openapi_default = {
|
|
|
34110
34110
|
security: [
|
|
34111
34111
|
{ pat_with_workspace: [] },
|
|
34112
34112
|
{ console_session_with_workspace: [] },
|
|
34113
|
-
{ api_key: [] }
|
|
34113
|
+
{ api_key: [] },
|
|
34114
|
+
{ client_session_with_customer: [] }
|
|
34114
34115
|
],
|
|
34115
34116
|
summary: "/access_methods/get_related",
|
|
34116
34117
|
tags: [],
|
|
@@ -34345,7 +34346,8 @@ var openapi_default = {
|
|
|
34345
34346
|
security: [
|
|
34346
34347
|
{ pat_with_workspace: [] },
|
|
34347
34348
|
{ console_session_with_workspace: [] },
|
|
34348
|
-
{ api_key: [] }
|
|
34349
|
+
{ api_key: [] },
|
|
34350
|
+
{ client_session_with_customer: [] }
|
|
34349
34351
|
],
|
|
34350
34352
|
summary: "/access_methods/get_related",
|
|
34351
34353
|
tags: [],
|
|
@@ -52868,6 +52870,84 @@ var openapi_default = {
|
|
|
52868
52870
|
"x-undocumented": "Internal endpoint for Console"
|
|
52869
52871
|
}
|
|
52870
52872
|
},
|
|
52873
|
+
"/seam/customer/v1/access_grants/list": {
|
|
52874
|
+
get: {
|
|
52875
|
+
description: "Gets an Access Grant.",
|
|
52876
|
+
operationId: "seamCustomerV1AccessGrantsListGet",
|
|
52877
|
+
parameters: [],
|
|
52878
|
+
responses: {
|
|
52879
|
+
200: {
|
|
52880
|
+
content: {
|
|
52881
|
+
"application/json": {
|
|
52882
|
+
schema: {
|
|
52883
|
+
properties: {
|
|
52884
|
+
access_grants: {
|
|
52885
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
52886
|
+
type: "array"
|
|
52887
|
+
},
|
|
52888
|
+
ok: { type: "boolean" }
|
|
52889
|
+
},
|
|
52890
|
+
required: ["access_grants", "ok"],
|
|
52891
|
+
type: "object"
|
|
52892
|
+
}
|
|
52893
|
+
}
|
|
52894
|
+
},
|
|
52895
|
+
description: "OK"
|
|
52896
|
+
},
|
|
52897
|
+
400: { description: "Bad Request" },
|
|
52898
|
+
401: { description: "Unauthorized" }
|
|
52899
|
+
},
|
|
52900
|
+
security: [{ client_session_with_customer: [] }],
|
|
52901
|
+
summary: "/seam/customer/v1/access_grants/list",
|
|
52902
|
+
tags: [],
|
|
52903
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "access_grants"],
|
|
52904
|
+
"x-fern-sdk-method-name": "list",
|
|
52905
|
+
"x-fern-sdk-return-value": "access_grants",
|
|
52906
|
+
"x-response-key": "access_grants",
|
|
52907
|
+
"x-title": "List Access Grants (Other Access)",
|
|
52908
|
+
"x-undocumented": "Internal endpoint for customer portals."
|
|
52909
|
+
},
|
|
52910
|
+
post: {
|
|
52911
|
+
description: "Gets an Access Grant.",
|
|
52912
|
+
operationId: "seamCustomerV1AccessGrantsListPost",
|
|
52913
|
+
requestBody: {
|
|
52914
|
+
content: {
|
|
52915
|
+
"application/json": { schema: { properties: {}, type: "object" } }
|
|
52916
|
+
}
|
|
52917
|
+
},
|
|
52918
|
+
responses: {
|
|
52919
|
+
200: {
|
|
52920
|
+
content: {
|
|
52921
|
+
"application/json": {
|
|
52922
|
+
schema: {
|
|
52923
|
+
properties: {
|
|
52924
|
+
access_grants: {
|
|
52925
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
52926
|
+
type: "array"
|
|
52927
|
+
},
|
|
52928
|
+
ok: { type: "boolean" }
|
|
52929
|
+
},
|
|
52930
|
+
required: ["access_grants", "ok"],
|
|
52931
|
+
type: "object"
|
|
52932
|
+
}
|
|
52933
|
+
}
|
|
52934
|
+
},
|
|
52935
|
+
description: "OK"
|
|
52936
|
+
},
|
|
52937
|
+
400: { description: "Bad Request" },
|
|
52938
|
+
401: { description: "Unauthorized" }
|
|
52939
|
+
},
|
|
52940
|
+
security: [{ client_session_with_customer: [] }],
|
|
52941
|
+
summary: "/seam/customer/v1/access_grants/list",
|
|
52942
|
+
tags: [],
|
|
52943
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "access_grants"],
|
|
52944
|
+
"x-fern-sdk-method-name": "list",
|
|
52945
|
+
"x-fern-sdk-return-value": "access_grants",
|
|
52946
|
+
"x-response-key": "access_grants",
|
|
52947
|
+
"x-title": "List Access Grants (Other Access)",
|
|
52948
|
+
"x-undocumented": "Internal endpoint for customer portals."
|
|
52949
|
+
}
|
|
52950
|
+
},
|
|
52871
52951
|
"/seam/customer/v1/automation_runs/list": {
|
|
52872
52952
|
get: {
|
|
52873
52953
|
description: "Returns a list of all automation runs for a workspace or customer.",
|
|
@@ -63241,7 +63321,8 @@ var openapi_default = {
|
|
|
63241
63321
|
security: [
|
|
63242
63322
|
{ api_key: [] },
|
|
63243
63323
|
{ pat_with_workspace: [] },
|
|
63244
|
-
{ console_session_with_workspace: [] }
|
|
63324
|
+
{ console_session_with_workspace: [] },
|
|
63325
|
+
{ client_session_with_customer: [] }
|
|
63245
63326
|
],
|
|
63246
63327
|
summary: "/user_identities/get",
|
|
63247
63328
|
tags: ["/user_identities"],
|
|
@@ -63304,7 +63385,8 @@ var openapi_default = {
|
|
|
63304
63385
|
security: [
|
|
63305
63386
|
{ api_key: [] },
|
|
63306
63387
|
{ pat_with_workspace: [] },
|
|
63307
|
-
{ console_session_with_workspace: [] }
|
|
63388
|
+
{ console_session_with_workspace: [] },
|
|
63389
|
+
{ client_session_with_customer: [] }
|
|
63308
63390
|
],
|
|
63309
63391
|
summary: "/user_identities/get",
|
|
63310
63392
|
tags: ["/user_identities"],
|