@seamapi/types 1.406.8 → 1.407.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 CHANGED
@@ -4237,10 +4237,19 @@ var access_method_revoked_event = access_method_event.extend({
4237
4237
  ---
4238
4238
  An access method was revoked.
4239
4239
  `);
4240
+ var access_method_deleted_event = access_method_event.extend({
4241
+ event_type: zod.z.literal("access_method.deleted")
4242
+ }).describe(`
4243
+ ---
4244
+ route_path: /unstable_access_methods
4245
+ ---
4246
+ An access method was deleted.
4247
+ `);
4240
4248
  var access_method_events = [
4241
4249
  access_method_issued_event,
4242
4250
  access_method_revoked_event,
4243
- access_method_card_encoding_required_event
4251
+ access_method_card_encoding_required_event,
4252
+ access_method_deleted_event
4244
4253
  ];
4245
4254
  var common_acs_event = common_event.extend({
4246
4255
  connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
@@ -16281,6 +16290,47 @@ var openapi_default = {
16281
16290
  type: "object",
16282
16291
  "x-route-path": "/unstable_access_methods"
16283
16292
  },
16293
+ {
16294
+ description: "An access method was deleted.",
16295
+ properties: {
16296
+ access_method_id: {
16297
+ description: "ID of the affected access method.",
16298
+ format: "uuid",
16299
+ type: "string"
16300
+ },
16301
+ created_at: {
16302
+ description: "Date and time at which the event was created.",
16303
+ format: "date-time",
16304
+ type: "string"
16305
+ },
16306
+ event_id: {
16307
+ description: "ID of the event.",
16308
+ format: "uuid",
16309
+ type: "string"
16310
+ },
16311
+ event_type: { enum: ["access_method.deleted"], type: "string" },
16312
+ occurred_at: {
16313
+ description: "Date and time at which the event occurred.",
16314
+ format: "date-time",
16315
+ type: "string"
16316
+ },
16317
+ workspace_id: {
16318
+ description: "ID of the workspace associated with the event.",
16319
+ format: "uuid",
16320
+ type: "string"
16321
+ }
16322
+ },
16323
+ required: [
16324
+ "event_id",
16325
+ "workspace_id",
16326
+ "created_at",
16327
+ "occurred_at",
16328
+ "access_method_id",
16329
+ "event_type"
16330
+ ],
16331
+ type: "object",
16332
+ "x-route-path": "/unstable_access_methods"
16333
+ },
16284
16334
  {
16285
16335
  description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
16286
16336
  properties: {
@@ -19661,7 +19711,7 @@ var openapi_default = {
19661
19711
  magic_link: {
19662
19712
  properties: {
19663
19713
  building_block_type: {
19664
- enum: ["connect_account", "manage_devices", "organize_spaces"],
19714
+ enum: ["connect_accounts", "manage_devices", "organize_spaces"],
19665
19715
  type: "string"
19666
19716
  },
19667
19717
  created_at: { format: "date-time", type: "string" },
@@ -32555,6 +32605,7 @@ var openapi_default = {
32555
32605
  "access_method.issued",
32556
32606
  "access_method.revoked",
32557
32607
  "access_method.card_encoding_required",
32608
+ "access_method.deleted",
32558
32609
  "acs_system.connected",
32559
32610
  "acs_system.added",
32560
32611
  "acs_system.disconnected",
@@ -32650,6 +32701,7 @@ var openapi_default = {
32650
32701
  "access_method.issued",
32651
32702
  "access_method.revoked",
32652
32703
  "access_method.card_encoding_required",
32704
+ "access_method.deleted",
32653
32705
  "acs_system.connected",
32654
32706
  "acs_system.added",
32655
32707
  "acs_system.disconnected",
@@ -40109,6 +40161,55 @@ var openapi_default = {
40109
40161
  "x-undocumented": "Experimental locations."
40110
40162
  }
40111
40163
  },
40164
+ "/unstable_partner/building_blocks/connect_accounts": {
40165
+ post: {
40166
+ description: "Creates a new building block magic link to connect accounts.",
40167
+ operationId: "unstablePartnerBuildingBlocksConnectAccountsPost",
40168
+ requestBody: {
40169
+ content: {
40170
+ "application/json": {
40171
+ schema: {
40172
+ properties: { customer_key: { type: "string" } },
40173
+ required: ["customer_key"],
40174
+ type: "object"
40175
+ }
40176
+ }
40177
+ }
40178
+ },
40179
+ responses: {
40180
+ 200: {
40181
+ content: {
40182
+ "application/json": {
40183
+ schema: {
40184
+ properties: {
40185
+ magic_link: { $ref: "#/components/schemas/magic_link" },
40186
+ ok: { type: "boolean" }
40187
+ },
40188
+ required: ["magic_link", "ok"],
40189
+ type: "object"
40190
+ }
40191
+ }
40192
+ },
40193
+ description: "OK"
40194
+ },
40195
+ 400: { description: "Bad Request" },
40196
+ 401: { description: "Unauthorized" }
40197
+ },
40198
+ security: [
40199
+ { pat_with_workspace: [] },
40200
+ { console_session_with_workspace: [] },
40201
+ { api_key: [] }
40202
+ ],
40203
+ summary: "/unstable_partner/building_blocks/connect_accounts",
40204
+ tags: [],
40205
+ "x-fern-sdk-group-name": ["unstable_partner", "building_blocks"],
40206
+ "x-fern-sdk-method-name": "connect_accounts",
40207
+ "x-fern-sdk-return-value": "magic_link",
40208
+ "x-response-key": "magic_link",
40209
+ "x-title": "Connect Accounts",
40210
+ "x-undocumented": "Experimental partner building blocks."
40211
+ }
40212
+ },
40112
40213
  "/unstable_partner/building_blocks/generate_magic_link": {
40113
40214
  post: {
40114
40215
  description: "Creates a new building block magic link.",
@@ -40117,12 +40218,11 @@ var openapi_default = {
40117
40218
  content: {
40118
40219
  "application/json": {
40119
40220
  schema: {
40120
- discriminator: { propertyName: "building_block_type" },
40121
40221
  oneOf: [
40122
40222
  {
40123
40223
  properties: {
40124
40224
  building_block_type: {
40125
- enum: ["connect_account"],
40225
+ enum: ["connect_accounts"],
40126
40226
  type: "string"
40127
40227
  },
40128
40228
  customer_key: { type: "string" }
@@ -40147,30 +40247,13 @@ var openapi_default = {
40147
40247
  enum: ["organize_spaces"],
40148
40248
  type: "string"
40149
40249
  },
40150
- customer_key: { type: "string" },
40151
- partner_resources: {
40152
- items: {
40153
- properties: {
40154
- custom_metadata: {
40155
- additionalProperties: { type: "string" },
40156
- type: "object"
40157
- },
40158
- description: { type: "string" },
40159
- name: { type: "string" },
40160
- partner_resource_key: { type: "string" }
40161
- },
40162
- required: ["partner_resource_key", "name"],
40163
- type: "object",
40164
- "x-route-path": "/unstable_partner/resources",
40165
- "x-undocumented": "Unreleased."
40166
- },
40167
- type: "array"
40168
- }
40250
+ collection_key: { type: "string" },
40251
+ customer_key: { type: "string" }
40169
40252
  },
40170
40253
  required: [
40171
40254
  "building_block_type",
40172
40255
  "customer_key",
40173
- "partner_resources"
40256
+ "collection_key"
40174
40257
  ],
40175
40258
  type: "object"
40176
40259
  }
@@ -40198,7 +40281,11 @@ var openapi_default = {
40198
40281
  400: { description: "Bad Request" },
40199
40282
  401: { description: "Unauthorized" }
40200
40283
  },
40201
- security: [{ api_key: [] }],
40284
+ security: [
40285
+ { pat_with_workspace: [] },
40286
+ { console_session_with_workspace: [] },
40287
+ { api_key: [] }
40288
+ ],
40202
40289
  summary: "/unstable_partner/building_blocks/generate_magic_link",
40203
40290
  tags: [],
40204
40291
  "x-fern-sdk-group-name": ["unstable_partner", "building_blocks"],
@@ -40209,6 +40296,125 @@ var openapi_default = {
40209
40296
  "x-undocumented": "Experimental partner building blocks."
40210
40297
  }
40211
40298
  },
40299
+ "/unstable_partner/building_blocks/manage_devices": {
40300
+ post: {
40301
+ description: "Creates a new building block magic link to manage devices.",
40302
+ operationId: "unstablePartnerBuildingBlocksManageDevicesPost",
40303
+ requestBody: {
40304
+ content: {
40305
+ "application/json": {
40306
+ schema: {
40307
+ properties: { customer_key: { type: "string" } },
40308
+ required: ["customer_key"],
40309
+ type: "object"
40310
+ }
40311
+ }
40312
+ }
40313
+ },
40314
+ responses: {
40315
+ 200: {
40316
+ content: {
40317
+ "application/json": {
40318
+ schema: {
40319
+ properties: {
40320
+ magic_link: { $ref: "#/components/schemas/magic_link" },
40321
+ ok: { type: "boolean" }
40322
+ },
40323
+ required: ["magic_link", "ok"],
40324
+ type: "object"
40325
+ }
40326
+ }
40327
+ },
40328
+ description: "OK"
40329
+ },
40330
+ 400: { description: "Bad Request" },
40331
+ 401: { description: "Unauthorized" }
40332
+ },
40333
+ security: [
40334
+ { pat_with_workspace: [] },
40335
+ { console_session_with_workspace: [] },
40336
+ { api_key: [] }
40337
+ ],
40338
+ summary: "/unstable_partner/building_blocks/manage_devices",
40339
+ tags: [],
40340
+ "x-fern-sdk-group-name": ["unstable_partner", "building_blocks"],
40341
+ "x-fern-sdk-method-name": "manage_devices",
40342
+ "x-fern-sdk-return-value": "magic_link",
40343
+ "x-response-key": "magic_link",
40344
+ "x-title": "Manage Devices",
40345
+ "x-undocumented": "Experimental partner building blocks."
40346
+ }
40347
+ },
40348
+ "/unstable_partner/building_blocks/organize_spaces": {
40349
+ post: {
40350
+ description: "Creates a new building block magic link to organize spaces.",
40351
+ operationId: "unstablePartnerBuildingBlocksOrganizeSpacesPost",
40352
+ requestBody: {
40353
+ content: {
40354
+ "application/json": {
40355
+ schema: {
40356
+ properties: {
40357
+ customer_key: { type: "string" },
40358
+ partner_resources: {
40359
+ items: {
40360
+ properties: {
40361
+ custom_metadata: {
40362
+ additionalProperties: { type: "string" },
40363
+ type: "object"
40364
+ },
40365
+ description: { type: "string" },
40366
+ name: { type: "string" },
40367
+ partner_resource_key: { type: "string" }
40368
+ },
40369
+ required: ["partner_resource_key", "name"],
40370
+ type: "object",
40371
+ "x-route-path": "/unstable_partner/resources",
40372
+ "x-undocumented": "Unreleased."
40373
+ },
40374
+ minItems: 1,
40375
+ type: "array"
40376
+ }
40377
+ },
40378
+ required: ["customer_key", "partner_resources"],
40379
+ type: "object"
40380
+ }
40381
+ }
40382
+ }
40383
+ },
40384
+ responses: {
40385
+ 200: {
40386
+ content: {
40387
+ "application/json": {
40388
+ schema: {
40389
+ properties: {
40390
+ magic_link: { $ref: "#/components/schemas/magic_link" },
40391
+ ok: { type: "boolean" }
40392
+ },
40393
+ required: ["magic_link", "ok"],
40394
+ type: "object"
40395
+ }
40396
+ }
40397
+ },
40398
+ description: "OK"
40399
+ },
40400
+ 400: { description: "Bad Request" },
40401
+ 401: { description: "Unauthorized" }
40402
+ },
40403
+ security: [
40404
+ { pat_with_workspace: [] },
40405
+ { console_session_with_workspace: [] },
40406
+ { api_key: [] }
40407
+ ],
40408
+ summary: "/unstable_partner/building_blocks/organize_spaces",
40409
+ tags: [],
40410
+ "x-fern-sdk-group-name": ["unstable_partner", "building_blocks"],
40411
+ "x-fern-sdk-method-name": "organize_spaces",
40412
+ "x-fern-sdk-return-value": "magic_link",
40413
+ "x-response-key": "magic_link",
40414
+ "x-title": "Organize Spaces",
40415
+ "x-undocumented": "Experimental partner building blocks."
40416
+ }
40417
+ },
40212
40418
  "/unstable_partner/resources/push": {
40213
40419
  post: {
40214
40420
  description: "Send Seam some of your resources.",