@seamapi/types 1.428.0 → 1.429.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
@@ -45649,6 +45649,678 @@ var openapi_default = {
45649
45649
  "x-undocumented": "Seam Bridge Client only."
45650
45650
  }
45651
45651
  },
45652
+ "/seam/customer/v1/automation_runs/list": {
45653
+ get: {
45654
+ description: "Returns a list of all automation runs for a workspace or customer.",
45655
+ operationId: "seamCustomerV1AutomationRunsListGet",
45656
+ parameters: [
45657
+ {
45658
+ in: "query",
45659
+ name: "automation_id",
45660
+ schema: {
45661
+ description: "ID of the automation for which you want to retrieve all automation runs.",
45662
+ format: "uuid",
45663
+ type: "string"
45664
+ }
45665
+ },
45666
+ {
45667
+ in: "query",
45668
+ name: "partner_resource_id",
45669
+ schema: {
45670
+ description: "ID of the partner resource for which you want to retrieve all automation runs.",
45671
+ format: "uuid",
45672
+ type: "string"
45673
+ }
45674
+ },
45675
+ {
45676
+ in: "query",
45677
+ name: "rule",
45678
+ schema: {
45679
+ description: "Filter automation runs by the specific rule that was executed.",
45680
+ enum: [
45681
+ "reservation_created",
45682
+ "reservation_time_updated",
45683
+ "reservation_deleted"
45684
+ ],
45685
+ type: "string"
45686
+ }
45687
+ },
45688
+ {
45689
+ in: "query",
45690
+ name: "success",
45691
+ schema: {
45692
+ description: "Filter automation runs by success status.",
45693
+ type: "boolean"
45694
+ }
45695
+ },
45696
+ {
45697
+ in: "query",
45698
+ name: "limit",
45699
+ schema: {
45700
+ default: 500,
45701
+ description: "Maximum number of records to return per page.",
45702
+ exclusiveMinimum: true,
45703
+ minimum: 0,
45704
+ type: "integer"
45705
+ }
45706
+ },
45707
+ {
45708
+ in: "query",
45709
+ name: "created_before",
45710
+ schema: {
45711
+ description: "Timestamp by which to limit returned automation runs. Returns runs created before this timestamp.",
45712
+ format: "date-time",
45713
+ type: "string"
45714
+ }
45715
+ },
45716
+ {
45717
+ in: "query",
45718
+ name: "page_cursor",
45719
+ schema: {
45720
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
45721
+ nullable: true,
45722
+ type: "string"
45723
+ }
45724
+ }
45725
+ ],
45726
+ responses: {
45727
+ 200: {
45728
+ content: {
45729
+ "application/json": {
45730
+ schema: {
45731
+ properties: {
45732
+ automation_runs: {
45733
+ items: {
45734
+ properties: {
45735
+ automation_id: { format: "uuid", type: "string" },
45736
+ automation_result: {
45737
+ properties: {
45738
+ actions: {
45739
+ items: {
45740
+ properties: {
45741
+ access_grant_id: {
45742
+ format: "uuid",
45743
+ type: "string"
45744
+ },
45745
+ action_type: {
45746
+ enum: ["create", "update", "delete"],
45747
+ type: "string"
45748
+ },
45749
+ resource_type: { type: "string" }
45750
+ },
45751
+ required: [
45752
+ "action_type",
45753
+ "resource_type",
45754
+ "access_grant_id"
45755
+ ],
45756
+ type: "object"
45757
+ },
45758
+ type: "array"
45759
+ },
45760
+ error: { type: "string" },
45761
+ rule: {
45762
+ enum: [
45763
+ "reservation_created",
45764
+ "reservation_time_updated",
45765
+ "reservation_deleted"
45766
+ ],
45767
+ type: "string"
45768
+ },
45769
+ success: { type: "boolean" }
45770
+ },
45771
+ required: ["success", "rule", "actions"],
45772
+ type: "object"
45773
+ },
45774
+ automation_run_id: { format: "uuid", type: "string" },
45775
+ created_at: { type: "string" },
45776
+ partner_resource_id: {
45777
+ format: "uuid",
45778
+ type: "string"
45779
+ },
45780
+ workspace_id: { format: "uuid", type: "string" }
45781
+ },
45782
+ required: [
45783
+ "automation_run_id",
45784
+ "workspace_id",
45785
+ "automation_id",
45786
+ "partner_resource_id",
45787
+ "created_at"
45788
+ ],
45789
+ type: "object"
45790
+ },
45791
+ type: "array"
45792
+ },
45793
+ ok: { type: "boolean" },
45794
+ pagination: { $ref: "#/components/schemas/pagination" }
45795
+ },
45796
+ required: ["automation_runs", "pagination", "ok"],
45797
+ type: "object"
45798
+ }
45799
+ }
45800
+ },
45801
+ description: "OK"
45802
+ },
45803
+ 400: { description: "Bad Request" },
45804
+ 401: { description: "Unauthorized" }
45805
+ },
45806
+ security: [
45807
+ { console_session_with_workspace: [] },
45808
+ { api_key: [] },
45809
+ { client_session_with_customer: [] }
45810
+ ],
45811
+ summary: "/seam/customer/v1/automation_runs/list",
45812
+ tags: [],
45813
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automation_runs"],
45814
+ "x-fern-sdk-method-name": "list",
45815
+ "x-fern-sdk-return-value": "automation_runs",
45816
+ "x-response-key": "automation_runs",
45817
+ "x-title": "List Automation Runs",
45818
+ "x-undocumented": "Internal endpoint for customer portals."
45819
+ },
45820
+ post: {
45821
+ description: "Returns a list of all automation runs for a workspace or customer.",
45822
+ operationId: "seamCustomerV1AutomationRunsListPost",
45823
+ requestBody: {
45824
+ content: {
45825
+ "application/json": {
45826
+ schema: {
45827
+ properties: {
45828
+ automation_id: {
45829
+ description: "ID of the automation for which you want to retrieve all automation runs.",
45830
+ format: "uuid",
45831
+ type: "string"
45832
+ },
45833
+ created_before: {
45834
+ description: "Timestamp by which to limit returned automation runs. Returns runs created before this timestamp.",
45835
+ format: "date-time",
45836
+ type: "string"
45837
+ },
45838
+ limit: {
45839
+ default: 500,
45840
+ description: "Maximum number of records to return per page.",
45841
+ exclusiveMinimum: true,
45842
+ minimum: 0,
45843
+ type: "integer"
45844
+ },
45845
+ page_cursor: {
45846
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
45847
+ nullable: true,
45848
+ type: "string"
45849
+ },
45850
+ partner_resource_id: {
45851
+ description: "ID of the partner resource for which you want to retrieve all automation runs.",
45852
+ format: "uuid",
45853
+ type: "string"
45854
+ },
45855
+ rule: {
45856
+ description: "Filter automation runs by the specific rule that was executed.",
45857
+ enum: [
45858
+ "reservation_created",
45859
+ "reservation_time_updated",
45860
+ "reservation_deleted"
45861
+ ],
45862
+ type: "string"
45863
+ },
45864
+ success: {
45865
+ description: "Filter automation runs by success status.",
45866
+ type: "boolean"
45867
+ }
45868
+ },
45869
+ type: "object"
45870
+ }
45871
+ }
45872
+ }
45873
+ },
45874
+ responses: {
45875
+ 200: {
45876
+ content: {
45877
+ "application/json": {
45878
+ schema: {
45879
+ properties: {
45880
+ automation_runs: {
45881
+ items: {
45882
+ properties: {
45883
+ automation_id: { format: "uuid", type: "string" },
45884
+ automation_result: {
45885
+ properties: {
45886
+ actions: {
45887
+ items: {
45888
+ properties: {
45889
+ access_grant_id: {
45890
+ format: "uuid",
45891
+ type: "string"
45892
+ },
45893
+ action_type: {
45894
+ enum: ["create", "update", "delete"],
45895
+ type: "string"
45896
+ },
45897
+ resource_type: { type: "string" }
45898
+ },
45899
+ required: [
45900
+ "action_type",
45901
+ "resource_type",
45902
+ "access_grant_id"
45903
+ ],
45904
+ type: "object"
45905
+ },
45906
+ type: "array"
45907
+ },
45908
+ error: { type: "string" },
45909
+ rule: {
45910
+ enum: [
45911
+ "reservation_created",
45912
+ "reservation_time_updated",
45913
+ "reservation_deleted"
45914
+ ],
45915
+ type: "string"
45916
+ },
45917
+ success: { type: "boolean" }
45918
+ },
45919
+ required: ["success", "rule", "actions"],
45920
+ type: "object"
45921
+ },
45922
+ automation_run_id: { format: "uuid", type: "string" },
45923
+ created_at: { type: "string" },
45924
+ partner_resource_id: {
45925
+ format: "uuid",
45926
+ type: "string"
45927
+ },
45928
+ workspace_id: { format: "uuid", type: "string" }
45929
+ },
45930
+ required: [
45931
+ "automation_run_id",
45932
+ "workspace_id",
45933
+ "automation_id",
45934
+ "partner_resource_id",
45935
+ "created_at"
45936
+ ],
45937
+ type: "object"
45938
+ },
45939
+ type: "array"
45940
+ },
45941
+ ok: { type: "boolean" },
45942
+ pagination: { $ref: "#/components/schemas/pagination" }
45943
+ },
45944
+ required: ["automation_runs", "pagination", "ok"],
45945
+ type: "object"
45946
+ }
45947
+ }
45948
+ },
45949
+ description: "OK"
45950
+ },
45951
+ 400: { description: "Bad Request" },
45952
+ 401: { description: "Unauthorized" }
45953
+ },
45954
+ security: [
45955
+ { console_session_with_workspace: [] },
45956
+ { api_key: [] },
45957
+ { client_session_with_customer: [] }
45958
+ ],
45959
+ summary: "/seam/customer/v1/automation_runs/list",
45960
+ tags: [],
45961
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automation_runs"],
45962
+ "x-fern-sdk-method-name": "list",
45963
+ "x-fern-sdk-return-value": "automation_runs",
45964
+ "x-response-key": "automation_runs",
45965
+ "x-title": "List Automation Runs",
45966
+ "x-undocumented": "Internal endpoint for customer portals."
45967
+ }
45968
+ },
45969
+ "/seam/customer/v1/automations/delete": {
45970
+ delete: {
45971
+ description: "Deletes the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.",
45972
+ operationId: "seamCustomerV1AutomationsDeleteDelete",
45973
+ requestBody: {
45974
+ content: {
45975
+ "application/json": { schema: { properties: {}, type: "object" } }
45976
+ }
45977
+ },
45978
+ responses: {
45979
+ 200: {
45980
+ content: {
45981
+ "application/json": {
45982
+ schema: {
45983
+ properties: { ok: { type: "boolean" } },
45984
+ required: ["ok"],
45985
+ type: "object"
45986
+ }
45987
+ }
45988
+ },
45989
+ description: "OK"
45990
+ },
45991
+ 400: { description: "Bad Request" },
45992
+ 401: { description: "Unauthorized" }
45993
+ },
45994
+ security: [
45995
+ { console_session_with_workspace: [] },
45996
+ { api_key: [] },
45997
+ { client_session_with_customer: [] }
45998
+ ],
45999
+ summary: "/seam/customer/v1/automations/delete",
46000
+ tags: [],
46001
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46002
+ "x-fern-sdk-method-name": "delete",
46003
+ "x-response-key": null,
46004
+ "x-title": "Delete Customer Portal Automation Configuration",
46005
+ "x-undocumented": "Internal endpoint for customer portals."
46006
+ }
46007
+ },
46008
+ "/seam/customer/v1/automations/get": {
46009
+ get: {
46010
+ description: "Gets the current automation configuration for a customer portal workspace.\nFor customer client sessions, returns customer-specific config if available,\notherwise falls back to workspace-level config.",
46011
+ operationId: "seamCustomerV1AutomationsGetGet",
46012
+ responses: {
46013
+ 200: {
46014
+ content: {
46015
+ "application/json": {
46016
+ schema: {
46017
+ properties: {
46018
+ access_rules: {
46019
+ properties: {
46020
+ reservation_created: {
46021
+ properties: {
46022
+ config: {
46023
+ properties: {
46024
+ access_methods: {
46025
+ items: {
46026
+ enum: ["card", "mobile_key", "code"],
46027
+ type: "string"
46028
+ },
46029
+ minItems: 1,
46030
+ type: "array"
46031
+ },
46032
+ method_issuance_strategy: {
46033
+ enum: [
46034
+ "first_available",
46035
+ "first_two_available",
46036
+ "all_available"
46037
+ ],
46038
+ type: "string"
46039
+ }
46040
+ },
46041
+ required: [
46042
+ "access_methods",
46043
+ "method_issuance_strategy"
46044
+ ],
46045
+ type: "object"
46046
+ },
46047
+ rule: {
46048
+ enum: ["reservation_created"],
46049
+ type: "string"
46050
+ }
46051
+ },
46052
+ required: ["rule", "config"],
46053
+ type: "object"
46054
+ },
46055
+ reservation_deleted: {
46056
+ properties: {
46057
+ config: {
46058
+ $ref: "#/components/schemas/access_code"
46059
+ },
46060
+ rule: {
46061
+ enum: ["reservation_deleted"],
46062
+ type: "string"
46063
+ }
46064
+ },
46065
+ required: ["rule", "config"],
46066
+ type: "object"
46067
+ },
46068
+ reservation_time_updated: {
46069
+ properties: {
46070
+ config: {
46071
+ $ref: "#/components/schemas/access_code"
46072
+ },
46073
+ rule: {
46074
+ enum: ["reservation_time_updated"],
46075
+ type: "string"
46076
+ }
46077
+ },
46078
+ required: ["rule", "config"],
46079
+ type: "object"
46080
+ }
46081
+ },
46082
+ type: "object"
46083
+ },
46084
+ ok: { type: "boolean" }
46085
+ },
46086
+ required: ["ok"],
46087
+ type: "object"
46088
+ }
46089
+ }
46090
+ },
46091
+ description: "OK"
46092
+ },
46093
+ 400: { description: "Bad Request" },
46094
+ 401: { description: "Unauthorized" }
46095
+ },
46096
+ security: [
46097
+ { console_session_with_workspace: [] },
46098
+ { api_key: [] },
46099
+ { client_session_with_customer: [] }
46100
+ ],
46101
+ summary: "/seam/customer/v1/automations/get",
46102
+ tags: [],
46103
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46104
+ "x-fern-sdk-method-name": "get",
46105
+ "x-response-key": null,
46106
+ "x-title": "Get Customer Portal Automation Configuration",
46107
+ "x-undocumented": "Internal endpoint for customer portals."
46108
+ }
46109
+ },
46110
+ "/seam/customer/v1/automations/update": {
46111
+ patch: {
46112
+ description: "Updates the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.",
46113
+ operationId: "seamCustomerV1AutomationsUpdatePatch",
46114
+ requestBody: {
46115
+ content: {
46116
+ "application/json": {
46117
+ schema: {
46118
+ properties: {
46119
+ access_rules: {
46120
+ description: "Access automation rules configuration.",
46121
+ properties: {
46122
+ reservation_created: {
46123
+ properties: {
46124
+ config: {
46125
+ properties: {
46126
+ access_methods: {
46127
+ items: {
46128
+ enum: ["card", "mobile_key", "code"],
46129
+ type: "string"
46130
+ },
46131
+ minItems: 1,
46132
+ type: "array"
46133
+ },
46134
+ method_issuance_strategy: {
46135
+ enum: [
46136
+ "first_available",
46137
+ "first_two_available",
46138
+ "all_available"
46139
+ ],
46140
+ type: "string"
46141
+ }
46142
+ },
46143
+ required: [
46144
+ "access_methods",
46145
+ "method_issuance_strategy"
46146
+ ],
46147
+ type: "object"
46148
+ },
46149
+ rule: {
46150
+ enum: ["reservation_created"],
46151
+ type: "string"
46152
+ }
46153
+ },
46154
+ required: ["rule", "config"],
46155
+ type: "object"
46156
+ },
46157
+ reservation_deleted: {
46158
+ properties: {
46159
+ config: { properties: {}, type: "object" },
46160
+ rule: {
46161
+ enum: ["reservation_deleted"],
46162
+ type: "string"
46163
+ }
46164
+ },
46165
+ required: ["rule", "config"],
46166
+ type: "object"
46167
+ },
46168
+ reservation_time_updated: {
46169
+ properties: {
46170
+ config: { properties: {}, type: "object" },
46171
+ rule: {
46172
+ enum: ["reservation_time_updated"],
46173
+ type: "string"
46174
+ }
46175
+ },
46176
+ required: ["rule", "config"],
46177
+ type: "object"
46178
+ }
46179
+ },
46180
+ type: "object"
46181
+ }
46182
+ },
46183
+ type: "object"
46184
+ }
46185
+ }
46186
+ }
46187
+ },
46188
+ responses: {
46189
+ 200: {
46190
+ content: {
46191
+ "application/json": {
46192
+ schema: {
46193
+ properties: { ok: { type: "boolean" } },
46194
+ required: ["ok"],
46195
+ type: "object"
46196
+ }
46197
+ }
46198
+ },
46199
+ description: "OK"
46200
+ },
46201
+ 400: { description: "Bad Request" },
46202
+ 401: { description: "Unauthorized" }
46203
+ },
46204
+ security: [
46205
+ { console_session_with_workspace: [] },
46206
+ { api_key: [] },
46207
+ { client_session_with_customer: [] }
46208
+ ],
46209
+ summary: "/seam/customer/v1/automations/update",
46210
+ tags: [],
46211
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46212
+ "x-fern-sdk-method-name": "update",
46213
+ "x-response-key": null,
46214
+ "x-title": "Update Customer Portal Automation Configuration",
46215
+ "x-undocumented": "Internal endpoint for customer portals."
46216
+ },
46217
+ post: {
46218
+ description: "Updates the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.",
46219
+ operationId: "seamCustomerV1AutomationsUpdatePost",
46220
+ requestBody: {
46221
+ content: {
46222
+ "application/json": {
46223
+ schema: {
46224
+ properties: {
46225
+ access_rules: {
46226
+ description: "Access automation rules configuration.",
46227
+ properties: {
46228
+ reservation_created: {
46229
+ properties: {
46230
+ config: {
46231
+ properties: {
46232
+ access_methods: {
46233
+ items: {
46234
+ enum: ["card", "mobile_key", "code"],
46235
+ type: "string"
46236
+ },
46237
+ minItems: 1,
46238
+ type: "array"
46239
+ },
46240
+ method_issuance_strategy: {
46241
+ enum: [
46242
+ "first_available",
46243
+ "first_two_available",
46244
+ "all_available"
46245
+ ],
46246
+ type: "string"
46247
+ }
46248
+ },
46249
+ required: [
46250
+ "access_methods",
46251
+ "method_issuance_strategy"
46252
+ ],
46253
+ type: "object"
46254
+ },
46255
+ rule: {
46256
+ enum: ["reservation_created"],
46257
+ type: "string"
46258
+ }
46259
+ },
46260
+ required: ["rule", "config"],
46261
+ type: "object"
46262
+ },
46263
+ reservation_deleted: {
46264
+ properties: {
46265
+ config: { properties: {}, type: "object" },
46266
+ rule: {
46267
+ enum: ["reservation_deleted"],
46268
+ type: "string"
46269
+ }
46270
+ },
46271
+ required: ["rule", "config"],
46272
+ type: "object"
46273
+ },
46274
+ reservation_time_updated: {
46275
+ properties: {
46276
+ config: { properties: {}, type: "object" },
46277
+ rule: {
46278
+ enum: ["reservation_time_updated"],
46279
+ type: "string"
46280
+ }
46281
+ },
46282
+ required: ["rule", "config"],
46283
+ type: "object"
46284
+ }
46285
+ },
46286
+ type: "object"
46287
+ }
46288
+ },
46289
+ type: "object"
46290
+ }
46291
+ }
46292
+ }
46293
+ },
46294
+ responses: {
46295
+ 200: {
46296
+ content: {
46297
+ "application/json": {
46298
+ schema: {
46299
+ properties: { ok: { type: "boolean" } },
46300
+ required: ["ok"],
46301
+ type: "object"
46302
+ }
46303
+ }
46304
+ },
46305
+ description: "OK"
46306
+ },
46307
+ 400: { description: "Bad Request" },
46308
+ 401: { description: "Unauthorized" }
46309
+ },
46310
+ security: [
46311
+ { console_session_with_workspace: [] },
46312
+ { api_key: [] },
46313
+ { client_session_with_customer: [] }
46314
+ ],
46315
+ summary: "/seam/customer/v1/automations/update",
46316
+ tags: [],
46317
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46318
+ "x-fern-sdk-method-name": "update",
46319
+ "x-response-key": null,
46320
+ "x-title": "Update Customer Portal Automation Configuration",
46321
+ "x-undocumented": "Internal endpoint for customer portals."
46322
+ }
46323
+ },
45652
46324
  "/seam/customer/v1/portals/get": {
45653
46325
  get: {
45654
46326
  description: "Retrieves the configuration for a customer portal identified by customer_portal_id.",