@seamapi/types 1.772.0 → 1.773.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/index.cjs CHANGED
@@ -65146,6 +65146,492 @@ var openapi_default = {
65146
65146
  "x-undocumented": "Internal endpoint for Console."
65147
65147
  }
65148
65148
  },
65149
+ "/seam/customer/v1/connectors/ical/generate-config": {
65150
+ post: {
65151
+ description: "Fetches an iCal feed URL and uses AI to generate a parsing config\nbased on the feed's structure and content.",
65152
+ operationId: "seamCustomerV1ConnectorsIcalGenerateConfigPost",
65153
+ requestBody: {
65154
+ content: {
65155
+ "application/json": {
65156
+ schema: {
65157
+ properties: {
65158
+ ical_url: {
65159
+ description: "iCal feed URL to analyze",
65160
+ format: "uri",
65161
+ type: "string"
65162
+ }
65163
+ },
65164
+ required: ["ical_url"],
65165
+ type: "object"
65166
+ }
65167
+ }
65168
+ }
65169
+ },
65170
+ responses: {
65171
+ 200: {
65172
+ content: {
65173
+ "application/json": {
65174
+ schema: {
65175
+ properties: {
65176
+ generated_config: {
65177
+ properties: {
65178
+ ical_config: {
65179
+ properties: {
65180
+ default_check_in_time: {
65181
+ description: "Default check-in time (HH:MM) used when iCal gives date-only values",
65182
+ pattern: "^\\d{2}:\\d{2}$",
65183
+ type: "string"
65184
+ },
65185
+ default_check_out_time: {
65186
+ description: "Default check-out time (HH:MM) used when iCal gives date-only values",
65187
+ pattern: "^\\d{2}:\\d{2}$",
65188
+ type: "string"
65189
+ },
65190
+ fields: {
65191
+ properties: {
65192
+ ends_at: {
65193
+ description: "How to extract check-out date",
65194
+ properties: {
65195
+ pattern: {
65196
+ description: "Regex with capture group to extract value from the property",
65197
+ type: "string"
65198
+ },
65199
+ source: {
65200
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65201
+ type: "string"
65202
+ },
65203
+ type: {
65204
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65205
+ enum: ["date"],
65206
+ type: "string"
65207
+ }
65208
+ },
65209
+ required: ["source"],
65210
+ type: "object"
65211
+ },
65212
+ guest_email: {
65213
+ description: "How to extract guest email",
65214
+ properties: {
65215
+ pattern: {
65216
+ description: "Regex with capture group to extract value from the property",
65217
+ type: "string"
65218
+ },
65219
+ source: {
65220
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65221
+ type: "string"
65222
+ },
65223
+ type: {
65224
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65225
+ enum: ["date"],
65226
+ type: "string"
65227
+ }
65228
+ },
65229
+ required: ["source"],
65230
+ type: "object"
65231
+ },
65232
+ guest_name: {
65233
+ description: "How to extract guest name",
65234
+ properties: {
65235
+ pattern: {
65236
+ description: "Regex with capture group to extract value from the property",
65237
+ type: "string"
65238
+ },
65239
+ source: {
65240
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65241
+ type: "string"
65242
+ },
65243
+ type: {
65244
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65245
+ enum: ["date"],
65246
+ type: "string"
65247
+ }
65248
+ },
65249
+ required: ["source"],
65250
+ type: "object"
65251
+ },
65252
+ guest_phone: {
65253
+ description: "How to extract guest phone",
65254
+ properties: {
65255
+ pattern: {
65256
+ description: "Regex with capture group to extract value from the property",
65257
+ type: "string"
65258
+ },
65259
+ source: {
65260
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65261
+ type: "string"
65262
+ },
65263
+ type: {
65264
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65265
+ enum: ["date"],
65266
+ type: "string"
65267
+ }
65268
+ },
65269
+ required: ["source"],
65270
+ type: "object"
65271
+ },
65272
+ reservation_key: {
65273
+ description: "How to extract the reservation key (falls back to UID)",
65274
+ properties: {
65275
+ pattern: {
65276
+ description: "Regex with capture group to extract value from the property",
65277
+ type: "string"
65278
+ },
65279
+ source: {
65280
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65281
+ type: "string"
65282
+ },
65283
+ type: {
65284
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65285
+ enum: ["date"],
65286
+ type: "string"
65287
+ }
65288
+ },
65289
+ required: ["source"],
65290
+ type: "object"
65291
+ },
65292
+ starts_at: {
65293
+ description: "How to extract check-in date",
65294
+ properties: {
65295
+ pattern: {
65296
+ description: "Regex with capture group to extract value from the property",
65297
+ type: "string"
65298
+ },
65299
+ source: {
65300
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65301
+ type: "string"
65302
+ },
65303
+ type: {
65304
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65305
+ enum: ["date"],
65306
+ type: "string"
65307
+ }
65308
+ },
65309
+ required: ["source"],
65310
+ type: "object"
65311
+ }
65312
+ },
65313
+ required: ["starts_at", "ends_at"],
65314
+ type: "object"
65315
+ },
65316
+ filter: {
65317
+ description: "Optional filter to skip non-matching events",
65318
+ properties: {
65319
+ pattern: {
65320
+ description: "Regex pattern \u2014 events not matching are skipped",
65321
+ type: "string"
65322
+ },
65323
+ source: {
65324
+ description: "iCal property name to match against",
65325
+ type: "string"
65326
+ }
65327
+ },
65328
+ required: ["source", "pattern"],
65329
+ type: "object"
65330
+ },
65331
+ time_zone: {
65332
+ description: "IANA time zone (e.g. America/New_York) applied when dates have no time/timezone",
65333
+ type: "string"
65334
+ }
65335
+ },
65336
+ required: ["fields"],
65337
+ type: "object"
65338
+ }
65339
+ },
65340
+ required: ["ical_config"],
65341
+ type: "object"
65342
+ },
65343
+ ok: { type: "boolean" }
65344
+ },
65345
+ required: ["generated_config", "ok"],
65346
+ type: "object"
65347
+ }
65348
+ }
65349
+ },
65350
+ description: "OK"
65351
+ },
65352
+ 400: { description: "Bad Request" },
65353
+ 401: { description: "Unauthorized" }
65354
+ },
65355
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
65356
+ summary: "/seam/customer/v1/connectors/ical/generate-config",
65357
+ tags: [],
65358
+ "x-fern-sdk-group-name": [
65359
+ "seam",
65360
+ "customer",
65361
+ "v1",
65362
+ "connectors",
65363
+ "ical"
65364
+ ],
65365
+ "x-fern-sdk-method-name": "generate-config",
65366
+ "x-fern-sdk-return-value": "generated_config",
65367
+ "x-response-key": "generated_config",
65368
+ "x-title": "Generate iCal Config",
65369
+ "x-undocumented": "Only used internally."
65370
+ }
65371
+ },
65372
+ "/seam/customer/v1/connectors/ical/validate-config": {
65373
+ post: {
65374
+ description: "Fetches a sample iCal feed and validates the config against it,\nreturning the parsed reservations so the caller can verify\nextraction is correct.",
65375
+ operationId: "seamCustomerV1ConnectorsIcalValidateConfigPost",
65376
+ requestBody: {
65377
+ content: {
65378
+ "application/json": {
65379
+ schema: {
65380
+ properties: {
65381
+ ical_config: {
65382
+ description: "Config to validate",
65383
+ properties: {
65384
+ default_check_in_time: {
65385
+ description: "Default check-in time (HH:MM) used when iCal gives date-only values",
65386
+ pattern: "^\\d{2}:\\d{2}$",
65387
+ type: "string"
65388
+ },
65389
+ default_check_out_time: {
65390
+ description: "Default check-out time (HH:MM) used when iCal gives date-only values",
65391
+ pattern: "^\\d{2}:\\d{2}$",
65392
+ type: "string"
65393
+ },
65394
+ fields: {
65395
+ properties: {
65396
+ ends_at: {
65397
+ description: "How to extract check-out date",
65398
+ properties: {
65399
+ pattern: {
65400
+ description: "Regex with capture group to extract value from the property",
65401
+ type: "string"
65402
+ },
65403
+ source: {
65404
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65405
+ type: "string"
65406
+ },
65407
+ type: {
65408
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65409
+ enum: ["date"],
65410
+ type: "string"
65411
+ }
65412
+ },
65413
+ required: ["source"],
65414
+ type: "object"
65415
+ },
65416
+ guest_email: {
65417
+ description: "How to extract guest email",
65418
+ properties: {
65419
+ pattern: {
65420
+ description: "Regex with capture group to extract value from the property",
65421
+ type: "string"
65422
+ },
65423
+ source: {
65424
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65425
+ type: "string"
65426
+ },
65427
+ type: {
65428
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65429
+ enum: ["date"],
65430
+ type: "string"
65431
+ }
65432
+ },
65433
+ required: ["source"],
65434
+ type: "object"
65435
+ },
65436
+ guest_name: {
65437
+ description: "How to extract guest name",
65438
+ properties: {
65439
+ pattern: {
65440
+ description: "Regex with capture group to extract value from the property",
65441
+ type: "string"
65442
+ },
65443
+ source: {
65444
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65445
+ type: "string"
65446
+ },
65447
+ type: {
65448
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65449
+ enum: ["date"],
65450
+ type: "string"
65451
+ }
65452
+ },
65453
+ required: ["source"],
65454
+ type: "object"
65455
+ },
65456
+ guest_phone: {
65457
+ description: "How to extract guest phone",
65458
+ properties: {
65459
+ pattern: {
65460
+ description: "Regex with capture group to extract value from the property",
65461
+ type: "string"
65462
+ },
65463
+ source: {
65464
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65465
+ type: "string"
65466
+ },
65467
+ type: {
65468
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65469
+ enum: ["date"],
65470
+ type: "string"
65471
+ }
65472
+ },
65473
+ required: ["source"],
65474
+ type: "object"
65475
+ },
65476
+ reservation_key: {
65477
+ description: "How to extract the reservation key (falls back to UID)",
65478
+ properties: {
65479
+ pattern: {
65480
+ description: "Regex with capture group to extract value from the property",
65481
+ type: "string"
65482
+ },
65483
+ source: {
65484
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65485
+ type: "string"
65486
+ },
65487
+ type: {
65488
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65489
+ enum: ["date"],
65490
+ type: "string"
65491
+ }
65492
+ },
65493
+ required: ["source"],
65494
+ type: "object"
65495
+ },
65496
+ starts_at: {
65497
+ description: "How to extract check-in date",
65498
+ properties: {
65499
+ pattern: {
65500
+ description: "Regex with capture group to extract value from the property",
65501
+ type: "string"
65502
+ },
65503
+ source: {
65504
+ description: "iCal property name to read from: UID, SUMMARY, DESCRIPTION, DTSTART, DTEND, etc.",
65505
+ type: "string"
65506
+ },
65507
+ type: {
65508
+ description: "Special type handling \u2014 'date' parses iCal date formats",
65509
+ enum: ["date"],
65510
+ type: "string"
65511
+ }
65512
+ },
65513
+ required: ["source"],
65514
+ type: "object"
65515
+ }
65516
+ },
65517
+ required: ["starts_at", "ends_at"],
65518
+ type: "object"
65519
+ },
65520
+ filter: {
65521
+ description: "Optional filter to skip non-matching events",
65522
+ properties: {
65523
+ pattern: {
65524
+ description: "Regex pattern \u2014 events not matching are skipped",
65525
+ type: "string"
65526
+ },
65527
+ source: {
65528
+ description: "iCal property name to match against",
65529
+ type: "string"
65530
+ }
65531
+ },
65532
+ required: ["source", "pattern"],
65533
+ type: "object"
65534
+ },
65535
+ time_zone: {
65536
+ description: "IANA time zone (e.g. America/New_York) applied when dates have no time/timezone",
65537
+ type: "string"
65538
+ }
65539
+ },
65540
+ required: ["fields"],
65541
+ type: "object"
65542
+ },
65543
+ ical_url: {
65544
+ description: "iCal feed URL to validate against",
65545
+ format: "uri",
65546
+ type: "string"
65547
+ }
65548
+ },
65549
+ required: ["ical_url", "ical_config"],
65550
+ type: "object"
65551
+ }
65552
+ }
65553
+ }
65554
+ },
65555
+ responses: {
65556
+ 200: {
65557
+ content: {
65558
+ "application/json": {
65559
+ schema: {
65560
+ properties: {
65561
+ ok: { type: "boolean" },
65562
+ validation_result: {
65563
+ properties: {
65564
+ errors: { items: { type: "string" }, type: "array" },
65565
+ filtered_events: { format: "float", type: "number" },
65566
+ is_valid: { type: "boolean" },
65567
+ matched_events: { format: "float", type: "number" },
65568
+ reservations: {
65569
+ items: {
65570
+ properties: {
65571
+ ends_at: { nullable: true, type: "string" },
65572
+ guest_email: { nullable: true, type: "string" },
65573
+ guest_name: { nullable: true, type: "string" },
65574
+ guest_phone: { nullable: true, type: "string" },
65575
+ reservation_key: {
65576
+ nullable: true,
65577
+ type: "string"
65578
+ },
65579
+ starts_at: { nullable: true, type: "string" },
65580
+ uid: { type: "string" }
65581
+ },
65582
+ required: [
65583
+ "uid",
65584
+ "reservation_key",
65585
+ "guest_name",
65586
+ "guest_email",
65587
+ "guest_phone",
65588
+ "starts_at",
65589
+ "ends_at"
65590
+ ],
65591
+ type: "object"
65592
+ },
65593
+ type: "array"
65594
+ },
65595
+ total_events: { format: "float", type: "number" }
65596
+ },
65597
+ required: [
65598
+ "is_valid",
65599
+ "total_events",
65600
+ "matched_events",
65601
+ "filtered_events",
65602
+ "reservations",
65603
+ "errors"
65604
+ ],
65605
+ type: "object"
65606
+ }
65607
+ },
65608
+ required: ["validation_result", "ok"],
65609
+ type: "object"
65610
+ }
65611
+ }
65612
+ },
65613
+ description: "OK"
65614
+ },
65615
+ 400: { description: "Bad Request" },
65616
+ 401: { description: "Unauthorized" }
65617
+ },
65618
+ security: [{ api_key: [] }, { console_session_with_workspace: [] }],
65619
+ summary: "/seam/customer/v1/connectors/ical/validate-config",
65620
+ tags: [],
65621
+ "x-fern-sdk-group-name": [
65622
+ "seam",
65623
+ "customer",
65624
+ "v1",
65625
+ "connectors",
65626
+ "ical"
65627
+ ],
65628
+ "x-fern-sdk-method-name": "validate-config",
65629
+ "x-fern-sdk-return-value": "validation_result",
65630
+ "x-response-key": "validation_result",
65631
+ "x-title": "Validate iCal Config",
65632
+ "x-undocumented": "Only used internally."
65633
+ }
65634
+ },
65149
65635
  "/seam/customer/v1/connectors/list": {
65150
65636
  get: {
65151
65637
  description: "Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).",