@seamapi/types 1.749.0 → 1.750.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.
@@ -111970,6 +111970,14 @@ declare const _default: {
111970
111970
  get: {
111971
111971
  description: string;
111972
111972
  operationId: string;
111973
+ parameters: {
111974
+ in: string;
111975
+ name: string;
111976
+ schema: {
111977
+ description: string;
111978
+ type: string;
111979
+ };
111980
+ }[];
111973
111981
  responses: {
111974
111982
  200: {
111975
111983
  content: {
@@ -112239,15 +112247,9 @@ declare const _default: {
112239
112247
  security: ({
112240
112248
  console_session_with_workspace: never[];
112241
112249
  api_key?: never;
112242
- client_session_with_customer?: never;
112243
112250
  } | {
112244
112251
  api_key: never[];
112245
112252
  console_session_with_workspace?: never;
112246
- client_session_with_customer?: never;
112247
- } | {
112248
- client_session_with_customer: never[];
112249
- console_session_with_workspace?: never;
112250
- api_key?: never;
112251
112253
  })[];
112252
112254
  summary: string;
112253
112255
  tags: never[];
@@ -112260,6 +112262,21 @@ declare const _default: {
112260
112262
  post: {
112261
112263
  description: string;
112262
112264
  operationId: string;
112265
+ requestBody: {
112266
+ content: {
112267
+ 'application/json': {
112268
+ schema: {
112269
+ properties: {
112270
+ customer_key: {
112271
+ description: string;
112272
+ type: string;
112273
+ };
112274
+ };
112275
+ type: string;
112276
+ };
112277
+ };
112278
+ };
112279
+ };
112263
112280
  responses: {
112264
112281
  200: {
112265
112282
  content: {
@@ -112529,15 +112546,9 @@ declare const _default: {
112529
112546
  security: ({
112530
112547
  console_session_with_workspace: never[];
112531
112548
  api_key?: never;
112532
- client_session_with_customer?: never;
112533
112549
  } | {
112534
112550
  api_key: never[];
112535
112551
  console_session_with_workspace?: never;
112536
- client_session_with_customer?: never;
112537
- } | {
112538
- client_session_with_customer: never[];
112539
- console_session_with_workspace?: never;
112540
- api_key?: never;
112541
112552
  })[];
112542
112553
  summary: string;
112543
112554
  tags: never[];
@@ -112809,6 +112820,10 @@ declare const _default: {
112809
112820
  };
112810
112821
  type: string;
112811
112822
  };
112823
+ customer_key: {
112824
+ description: string;
112825
+ type: string;
112826
+ };
112812
112827
  };
112813
112828
  type: string;
112814
112829
  };
@@ -113114,6 +113129,10 @@ declare const _default: {
113114
113129
  };
113115
113130
  type: string;
113116
113131
  };
113132
+ customer_key: {
113133
+ description: string;
113134
+ type: string;
113135
+ };
113117
113136
  };
113118
113137
  type: string;
113119
113138
  };
@@ -114289,15 +114308,6 @@ declare const _default: {
114289
114308
  get: {
114290
114309
  description: string;
114291
114310
  operationId: string;
114292
- parameters: {
114293
- in: string;
114294
- name: string;
114295
- required: boolean;
114296
- schema: {
114297
- description: string;
114298
- type: string;
114299
- };
114300
- }[];
114301
114311
  responses: {
114302
114312
  200: {
114303
114313
  content: {
@@ -114569,19 +114579,9 @@ declare const _default: {
114569
114579
  description: string;
114570
114580
  };
114571
114581
  };
114572
- security: ({
114573
- pat_with_workspace: never[];
114574
- console_session_with_workspace?: never;
114575
- api_key?: never;
114576
- } | {
114577
- console_session_with_workspace: never[];
114578
- pat_with_workspace?: never;
114579
- api_key?: never;
114580
- } | {
114581
- api_key: never[];
114582
- pat_with_workspace?: never;
114583
- console_session_with_workspace?: never;
114584
- })[];
114582
+ security: {
114583
+ client_session_with_customer: never[];
114584
+ }[];
114585
114585
  summary: string;
114586
114586
  tags: never[];
114587
114587
  'x-fern-sdk-group-name': string[];
@@ -114593,22 +114593,6 @@ declare const _default: {
114593
114593
  post: {
114594
114594
  description: string;
114595
114595
  operationId: string;
114596
- requestBody: {
114597
- content: {
114598
- 'application/json': {
114599
- schema: {
114600
- properties: {
114601
- customer_key: {
114602
- description: string;
114603
- type: string;
114604
- };
114605
- };
114606
- required: string[];
114607
- type: string;
114608
- };
114609
- };
114610
- };
114611
- };
114612
114596
  responses: {
114613
114597
  200: {
114614
114598
  content: {
@@ -114880,19 +114864,9 @@ declare const _default: {
114880
114864
  description: string;
114881
114865
  };
114882
114866
  };
114883
- security: ({
114884
- pat_with_workspace: never[];
114885
- console_session_with_workspace?: never;
114886
- api_key?: never;
114887
- } | {
114888
- console_session_with_workspace: never[];
114889
- pat_with_workspace?: never;
114890
- api_key?: never;
114891
- } | {
114892
- api_key: never[];
114893
- pat_with_workspace?: never;
114894
- console_session_with_workspace?: never;
114895
- })[];
114867
+ security: {
114868
+ client_session_with_customer: never[];
114869
+ }[];
114896
114870
  summary: string;
114897
114871
  tags: never[];
114898
114872
  'x-fern-sdk-group-name': string[];
@@ -191034,7 +191008,10 @@ type Routes = {
191034
191008
  method: 'GET' | 'POST';
191035
191009
  queryParams: {};
191036
191010
  jsonBody: {};
191037
- commonParams: {};
191011
+ commonParams: {
191012
+ /** Key of the customer to get automation config for. */
191013
+ customer_key?: string | undefined;
191014
+ };
191038
191015
  formData: {};
191039
191016
  jsonResponse: {
191040
191017
  access_rules?: {
@@ -191116,6 +191093,8 @@ type Routes = {
191116
191093
  method: 'PATCH' | 'POST';
191117
191094
  queryParams: {};
191118
191095
  jsonBody: {
191096
+ /** Key of the customer to update automation config for. */
191097
+ customer_key?: string | undefined;
191119
191098
  /** Access automation rules configuration. */
191120
191099
  access_rules?: {
191121
191100
  reservation_created?: {
@@ -191408,10 +191387,7 @@ type Routes = {
191408
191387
  method: 'GET' | 'POST';
191409
191388
  queryParams: {};
191410
191389
  jsonBody: {};
191411
- commonParams: {
191412
- /** Key of the customer. */
191413
- customer_key: string;
191414
- };
191390
+ commonParams: {};
191415
191391
  formData: {};
191416
191392
  jsonResponse: {
191417
191393
  automation: {
package/dist/index.cjs CHANGED
@@ -62672,8 +62672,18 @@ var openapi_default = {
62672
62672
  },
62673
62673
  "/seam/customer/v1/automations/get": {
62674
62674
  get: {
62675
- 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.",
62675
+ description: "Gets the current automation configuration for a customer portal workspace.\nWhen customer_key is provided, returns customer-specific config if available,\notherwise falls back to workspace-level config.",
62676
62676
  operationId: "seamCustomerV1AutomationsGetGet",
62677
+ parameters: [
62678
+ {
62679
+ in: "query",
62680
+ name: "customer_key",
62681
+ schema: {
62682
+ description: "Key of the customer to get automation config for.",
62683
+ type: "string"
62684
+ }
62685
+ }
62686
+ ],
62677
62687
  responses: {
62678
62688
  200: {
62679
62689
  content: {
@@ -62943,11 +62953,7 @@ var openapi_default = {
62943
62953
  400: { description: "Bad Request" },
62944
62954
  401: { description: "Unauthorized" }
62945
62955
  },
62946
- security: [
62947
- { console_session_with_workspace: [] },
62948
- { api_key: [] },
62949
- { client_session_with_customer: [] }
62950
- ],
62956
+ security: [{ console_session_with_workspace: [] }, { api_key: [] }],
62951
62957
  summary: "/seam/customer/v1/automations/get",
62952
62958
  tags: [],
62953
62959
  "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
@@ -62957,8 +62963,23 @@ var openapi_default = {
62957
62963
  "x-undocumented": "Internal endpoint for customer portals."
62958
62964
  },
62959
62965
  post: {
62960
- 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.",
62966
+ description: "Gets the current automation configuration for a customer portal workspace.\nWhen customer_key is provided, returns customer-specific config if available,\notherwise falls back to workspace-level config.",
62961
62967
  operationId: "seamCustomerV1AutomationsGetPost",
62968
+ requestBody: {
62969
+ content: {
62970
+ "application/json": {
62971
+ schema: {
62972
+ properties: {
62973
+ customer_key: {
62974
+ description: "Key of the customer to get automation config for.",
62975
+ type: "string"
62976
+ }
62977
+ },
62978
+ type: "object"
62979
+ }
62980
+ }
62981
+ }
62982
+ },
62962
62983
  responses: {
62963
62984
  200: {
62964
62985
  content: {
@@ -63228,11 +63249,7 @@ var openapi_default = {
63228
63249
  400: { description: "Bad Request" },
63229
63250
  401: { description: "Unauthorized" }
63230
63251
  },
63231
- security: [
63232
- { console_session_with_workspace: [] },
63233
- { api_key: [] },
63234
- { client_session_with_customer: [] }
63235
- ],
63252
+ security: [{ console_session_with_workspace: [] }, { api_key: [] }],
63236
63253
  summary: "/seam/customer/v1/automations/get",
63237
63254
  tags: [],
63238
63255
  "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
@@ -63490,6 +63507,10 @@ var openapi_default = {
63490
63507
  }
63491
63508
  },
63492
63509
  type: "object"
63510
+ },
63511
+ customer_key: {
63512
+ description: "Key of the customer to update automation config for.",
63513
+ type: "string"
63493
63514
  }
63494
63515
  },
63495
63516
  type: "object"
@@ -63769,6 +63790,10 @@ var openapi_default = {
63769
63790
  }
63770
63791
  },
63771
63792
  type: "object"
63793
+ },
63794
+ customer_key: {
63795
+ description: "Key of the customer to update automation config for.",
63796
+ type: "string"
63772
63797
  }
63773
63798
  },
63774
63799
  type: "object"
@@ -64759,16 +64784,8 @@ var openapi_default = {
64759
64784
  },
64760
64785
  "/seam/customer/v1/customers/automations/get": {
64761
64786
  get: {
64762
- description: "Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).",
64787
+ description: "Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).",
64763
64788
  operationId: "seamCustomerV1CustomersAutomationsGetGet",
64764
- parameters: [
64765
- {
64766
- in: "query",
64767
- name: "customer_key",
64768
- required: true,
64769
- schema: { description: "Key of the customer.", type: "string" }
64770
- }
64771
- ],
64772
64789
  responses: {
64773
64790
  200: {
64774
64791
  content: {
@@ -65047,11 +65064,7 @@ var openapi_default = {
65047
65064
  400: { description: "Bad Request" },
65048
65065
  401: { description: "Unauthorized" }
65049
65066
  },
65050
- security: [
65051
- { pat_with_workspace: [] },
65052
- { console_session_with_workspace: [] },
65053
- { api_key: [] }
65054
- ],
65067
+ security: [{ client_session_with_customer: [] }],
65055
65068
  summary: "/seam/customer/v1/customers/automations/get",
65056
65069
  tags: [],
65057
65070
  "x-fern-sdk-group-name": [
@@ -65067,24 +65080,8 @@ var openapi_default = {
65067
65080
  "x-title": "Get Customer Automation Configuration"
65068
65081
  },
65069
65082
  post: {
65070
- description: "Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).",
65083
+ description: "Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).",
65071
65084
  operationId: "seamCustomerV1CustomersAutomationsGetPost",
65072
- requestBody: {
65073
- content: {
65074
- "application/json": {
65075
- schema: {
65076
- properties: {
65077
- customer_key: {
65078
- description: "Key of the customer.",
65079
- type: "string"
65080
- }
65081
- },
65082
- required: ["customer_key"],
65083
- type: "object"
65084
- }
65085
- }
65086
- }
65087
- },
65088
65085
  responses: {
65089
65086
  200: {
65090
65087
  content: {
@@ -65363,11 +65360,7 @@ var openapi_default = {
65363
65360
  400: { description: "Bad Request" },
65364
65361
  401: { description: "Unauthorized" }
65365
65362
  },
65366
- security: [
65367
- { pat_with_workspace: [] },
65368
- { console_session_with_workspace: [] },
65369
- { api_key: [] }
65370
- ],
65363
+ security: [{ client_session_with_customer: [] }],
65371
65364
  summary: "/seam/customer/v1/customers/automations/get",
65372
65365
  tags: [],
65373
65366
  "x-fern-sdk-group-name": [