@seamapi/types 1.419.0 → 1.420.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 +188 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +276 -2
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +6 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +10 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/events/access-grants.d.ts +0 -2
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +47 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +24 -1
- package/lib/seam/connect/openapi.d.ts +181 -0
- package/lib/seam/connect/openapi.js +178 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +66 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +10 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +0 -6
- package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +183 -0
- package/src/lib/seam/connect/route-types.ts +68 -0
package/dist/connect.cjs
CHANGED
|
@@ -4448,11 +4448,20 @@ var access_method_deleted_event = access_method_event.extend({
|
|
|
4448
4448
|
---
|
|
4449
4449
|
An access method was deleted.
|
|
4450
4450
|
`);
|
|
4451
|
+
var access_method_reissued_event = access_method_event.extend({
|
|
4452
|
+
event_type: zod.z.literal("access_method.reissued")
|
|
4453
|
+
}).describe(`
|
|
4454
|
+
---
|
|
4455
|
+
route_path: /access_methods
|
|
4456
|
+
---
|
|
4457
|
+
An access method was reissued due to an access grant update.
|
|
4458
|
+
`);
|
|
4451
4459
|
var access_method_events = [
|
|
4452
4460
|
access_method_issued_event,
|
|
4453
4461
|
access_method_revoked_event,
|
|
4454
4462
|
access_method_card_encoding_required_event,
|
|
4455
|
-
access_method_deleted_event
|
|
4463
|
+
access_method_deleted_event,
|
|
4464
|
+
access_method_reissued_event
|
|
4456
4465
|
];
|
|
4457
4466
|
var common_acs_event = common_event.extend({
|
|
4458
4467
|
connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
|
|
@@ -7025,6 +7034,11 @@ var openapi_default = {
|
|
|
7025
7034
|
description: "Display name of the access grant.",
|
|
7026
7035
|
type: "string"
|
|
7027
7036
|
},
|
|
7037
|
+
ends_at: {
|
|
7038
|
+
description: "Date and time at which the access grant ends.",
|
|
7039
|
+
format: "date-time",
|
|
7040
|
+
type: "string"
|
|
7041
|
+
},
|
|
7028
7042
|
location_ids: {
|
|
7029
7043
|
deprecated: true,
|
|
7030
7044
|
items: { format: "uuid", type: "string" },
|
|
@@ -7070,6 +7084,11 @@ var openapi_default = {
|
|
|
7070
7084
|
items: { format: "uuid", type: "string" },
|
|
7071
7085
|
type: "array"
|
|
7072
7086
|
},
|
|
7087
|
+
starts_at: {
|
|
7088
|
+
description: "Date and time at which the access grant starts.",
|
|
7089
|
+
format: "date-time",
|
|
7090
|
+
type: "string"
|
|
7091
|
+
},
|
|
7073
7092
|
user_identity_id: {
|
|
7074
7093
|
description: "ID of user identity to which the access grant gives access.",
|
|
7075
7094
|
format: "uuid",
|
|
@@ -18224,6 +18243,47 @@ var openapi_default = {
|
|
|
18224
18243
|
type: "object",
|
|
18225
18244
|
"x-route-path": "/access_methods"
|
|
18226
18245
|
},
|
|
18246
|
+
{
|
|
18247
|
+
description: "An access method was reissued due to an access grant update.",
|
|
18248
|
+
properties: {
|
|
18249
|
+
access_method_id: {
|
|
18250
|
+
description: "ID of the affected access method.",
|
|
18251
|
+
format: "uuid",
|
|
18252
|
+
type: "string"
|
|
18253
|
+
},
|
|
18254
|
+
created_at: {
|
|
18255
|
+
description: "Date and time at which the event was created.",
|
|
18256
|
+
format: "date-time",
|
|
18257
|
+
type: "string"
|
|
18258
|
+
},
|
|
18259
|
+
event_id: {
|
|
18260
|
+
description: "ID of the event.",
|
|
18261
|
+
format: "uuid",
|
|
18262
|
+
type: "string"
|
|
18263
|
+
},
|
|
18264
|
+
event_type: { enum: ["access_method.reissued"], type: "string" },
|
|
18265
|
+
occurred_at: {
|
|
18266
|
+
description: "Date and time at which the event occurred.",
|
|
18267
|
+
format: "date-time",
|
|
18268
|
+
type: "string"
|
|
18269
|
+
},
|
|
18270
|
+
workspace_id: {
|
|
18271
|
+
description: "ID of the workspace associated with the event.",
|
|
18272
|
+
format: "uuid",
|
|
18273
|
+
type: "string"
|
|
18274
|
+
}
|
|
18275
|
+
},
|
|
18276
|
+
required: [
|
|
18277
|
+
"event_id",
|
|
18278
|
+
"workspace_id",
|
|
18279
|
+
"created_at",
|
|
18280
|
+
"occurred_at",
|
|
18281
|
+
"access_method_id",
|
|
18282
|
+
"event_type"
|
|
18283
|
+
],
|
|
18284
|
+
type: "object",
|
|
18285
|
+
"x-route-path": "/access_methods"
|
|
18286
|
+
},
|
|
18227
18287
|
{
|
|
18228
18288
|
description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
|
|
18229
18289
|
properties: {
|
|
@@ -29122,6 +29182,131 @@ var openapi_default = {
|
|
|
29122
29182
|
"x-title": "List Access Grants"
|
|
29123
29183
|
}
|
|
29124
29184
|
},
|
|
29185
|
+
"/access_grants/update": {
|
|
29186
|
+
patch: {
|
|
29187
|
+
description: "Updates an existing access grant's time window.",
|
|
29188
|
+
operationId: "accessGrantsUpdatePatch",
|
|
29189
|
+
requestBody: {
|
|
29190
|
+
content: {
|
|
29191
|
+
"application/json": {
|
|
29192
|
+
schema: {
|
|
29193
|
+
properties: {
|
|
29194
|
+
access_grant_id: {
|
|
29195
|
+
description: "ID of the access grant to update.",
|
|
29196
|
+
format: "uuid",
|
|
29197
|
+
type: "string"
|
|
29198
|
+
},
|
|
29199
|
+
ends_at: {
|
|
29200
|
+
description: "Date and time at which the validity of the grant 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`.",
|
|
29201
|
+
format: "date-time",
|
|
29202
|
+
nullable: true,
|
|
29203
|
+
type: "string"
|
|
29204
|
+
},
|
|
29205
|
+
starts_at: {
|
|
29206
|
+
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
29207
|
+
format: "date-time",
|
|
29208
|
+
nullable: true,
|
|
29209
|
+
type: "string"
|
|
29210
|
+
}
|
|
29211
|
+
},
|
|
29212
|
+
required: ["access_grant_id"],
|
|
29213
|
+
type: "object"
|
|
29214
|
+
}
|
|
29215
|
+
}
|
|
29216
|
+
}
|
|
29217
|
+
},
|
|
29218
|
+
responses: {
|
|
29219
|
+
200: {
|
|
29220
|
+
content: {
|
|
29221
|
+
"application/json": {
|
|
29222
|
+
schema: {
|
|
29223
|
+
properties: { ok: { type: "boolean" } },
|
|
29224
|
+
required: ["ok"],
|
|
29225
|
+
type: "object"
|
|
29226
|
+
}
|
|
29227
|
+
}
|
|
29228
|
+
},
|
|
29229
|
+
description: "OK"
|
|
29230
|
+
},
|
|
29231
|
+
400: { description: "Bad Request" },
|
|
29232
|
+
401: { description: "Unauthorized" }
|
|
29233
|
+
},
|
|
29234
|
+
security: [
|
|
29235
|
+
{ pat_with_workspace: [] },
|
|
29236
|
+
{ console_session_with_workspace: [] },
|
|
29237
|
+
{ api_key: [] },
|
|
29238
|
+
{ client_session_with_customer: [] }
|
|
29239
|
+
],
|
|
29240
|
+
summary: "/access_grants/update",
|
|
29241
|
+
tags: [],
|
|
29242
|
+
"x-draft": "Early access.",
|
|
29243
|
+
"x-fern-ignore": true,
|
|
29244
|
+
"x-response-key": null,
|
|
29245
|
+
"x-title": "Update an Access Grant"
|
|
29246
|
+
},
|
|
29247
|
+
post: {
|
|
29248
|
+
description: "Updates an existing access grant's time window.",
|
|
29249
|
+
operationId: "accessGrantsUpdatePost",
|
|
29250
|
+
requestBody: {
|
|
29251
|
+
content: {
|
|
29252
|
+
"application/json": {
|
|
29253
|
+
schema: {
|
|
29254
|
+
properties: {
|
|
29255
|
+
access_grant_id: {
|
|
29256
|
+
description: "ID of the access grant to update.",
|
|
29257
|
+
format: "uuid",
|
|
29258
|
+
type: "string"
|
|
29259
|
+
},
|
|
29260
|
+
ends_at: {
|
|
29261
|
+
description: "Date and time at which the validity of the grant 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`.",
|
|
29262
|
+
format: "date-time",
|
|
29263
|
+
nullable: true,
|
|
29264
|
+
type: "string"
|
|
29265
|
+
},
|
|
29266
|
+
starts_at: {
|
|
29267
|
+
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
29268
|
+
format: "date-time",
|
|
29269
|
+
nullable: true,
|
|
29270
|
+
type: "string"
|
|
29271
|
+
}
|
|
29272
|
+
},
|
|
29273
|
+
required: ["access_grant_id"],
|
|
29274
|
+
type: "object"
|
|
29275
|
+
}
|
|
29276
|
+
}
|
|
29277
|
+
}
|
|
29278
|
+
},
|
|
29279
|
+
responses: {
|
|
29280
|
+
200: {
|
|
29281
|
+
content: {
|
|
29282
|
+
"application/json": {
|
|
29283
|
+
schema: {
|
|
29284
|
+
properties: { ok: { type: "boolean" } },
|
|
29285
|
+
required: ["ok"],
|
|
29286
|
+
type: "object"
|
|
29287
|
+
}
|
|
29288
|
+
}
|
|
29289
|
+
},
|
|
29290
|
+
description: "OK"
|
|
29291
|
+
},
|
|
29292
|
+
400: { description: "Bad Request" },
|
|
29293
|
+
401: { description: "Unauthorized" }
|
|
29294
|
+
},
|
|
29295
|
+
security: [
|
|
29296
|
+
{ pat_with_workspace: [] },
|
|
29297
|
+
{ console_session_with_workspace: [] },
|
|
29298
|
+
{ api_key: [] },
|
|
29299
|
+
{ client_session_with_customer: [] }
|
|
29300
|
+
],
|
|
29301
|
+
summary: "/access_grants/update",
|
|
29302
|
+
tags: [],
|
|
29303
|
+
"x-draft": "Early access.",
|
|
29304
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
29305
|
+
"x-fern-sdk-method-name": "update",
|
|
29306
|
+
"x-response-key": null,
|
|
29307
|
+
"x-title": "Update an Access Grant"
|
|
29308
|
+
}
|
|
29309
|
+
},
|
|
29125
29310
|
"/access_methods/delete": {
|
|
29126
29311
|
post: {
|
|
29127
29312
|
description: "Delete an access method.",
|
|
@@ -36246,6 +36431,7 @@ var openapi_default = {
|
|
|
36246
36431
|
"access_method.revoked",
|
|
36247
36432
|
"access_method.card_encoding_required",
|
|
36248
36433
|
"access_method.deleted",
|
|
36434
|
+
"access_method.reissued",
|
|
36249
36435
|
"acs_system.connected",
|
|
36250
36436
|
"acs_system.added",
|
|
36251
36437
|
"acs_system.disconnected",
|
|
@@ -36342,6 +36528,7 @@ var openapi_default = {
|
|
|
36342
36528
|
"access_method.revoked",
|
|
36343
36529
|
"access_method.card_encoding_required",
|
|
36344
36530
|
"access_method.deleted",
|
|
36531
|
+
"access_method.reissued",
|
|
36345
36532
|
"acs_system.connected",
|
|
36346
36533
|
"acs_system.added",
|
|
36347
36534
|
"acs_system.disconnected",
|