Skip to content

Commit 4c78839

Browse files
authored
feat: Sync with Seam API via 36c22bcacdeaeb5d600f321e6ca350a15aac4fba (#2716)
1 parent 3e9e93c commit 4c78839

File tree

2 files changed

+51
-53
lines changed

2 files changed

+51
-53
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -61253,8 +61253,18 @@ export default {
6125361253
'/seam/customer/v1/automations/get': {
6125461254
get: {
6125561255
description:
61256-
'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.',
61256+
'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.',
6125761257
operationId: 'seamCustomerV1AutomationsGetGet',
61258+
parameters: [
61259+
{
61260+
in: 'query',
61261+
name: 'customer_key',
61262+
schema: {
61263+
description: 'Key of the customer to get automation config for.',
61264+
type: 'string',
61265+
},
61266+
},
61267+
],
6125861268
responses: {
6125961269
200: {
6126061270
content: {
@@ -61524,11 +61534,7 @@ export default {
6152461534
400: { description: 'Bad Request' },
6152561535
401: { description: 'Unauthorized' },
6152661536
},
61527-
security: [
61528-
{ console_session_with_workspace: [] },
61529-
{ api_key: [] },
61530-
{ client_session_with_customer: [] },
61531-
],
61537+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
6153261538
summary: '/seam/customer/v1/automations/get',
6153361539
tags: [],
6153461540
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
@@ -61539,8 +61545,24 @@ export default {
6153961545
},
6154061546
post: {
6154161547
description:
61542-
'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.',
61548+
'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.',
6154361549
operationId: 'seamCustomerV1AutomationsGetPost',
61550+
requestBody: {
61551+
content: {
61552+
'application/json': {
61553+
schema: {
61554+
properties: {
61555+
customer_key: {
61556+
description:
61557+
'Key of the customer to get automation config for.',
61558+
type: 'string',
61559+
},
61560+
},
61561+
type: 'object',
61562+
},
61563+
},
61564+
},
61565+
},
6154461566
responses: {
6154561567
200: {
6154661568
content: {
@@ -61810,11 +61832,7 @@ export default {
6181061832
400: { description: 'Bad Request' },
6181161833
401: { description: 'Unauthorized' },
6181261834
},
61813-
security: [
61814-
{ console_session_with_workspace: [] },
61815-
{ api_key: [] },
61816-
{ client_session_with_customer: [] },
61817-
],
61835+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
6181861836
summary: '/seam/customer/v1/automations/get',
6181961837
tags: [],
6182061838
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
@@ -62074,6 +62092,11 @@ export default {
6207462092
},
6207562093
type: 'object',
6207662094
},
62095+
customer_key: {
62096+
description:
62097+
'Key of the customer to update automation config for.',
62098+
type: 'string',
62099+
},
6207762100
},
6207862101
type: 'object',
6207962102
},
@@ -62354,6 +62377,11 @@ export default {
6235462377
},
6235562378
type: 'object',
6235662379
},
62380+
customer_key: {
62381+
description:
62382+
'Key of the customer to update automation config for.',
62383+
type: 'string',
62384+
},
6235762385
},
6235862386
type: 'object',
6235962387
},
@@ -63360,16 +63388,8 @@ export default {
6336063388
'/seam/customer/v1/customers/automations/get': {
6336163389
get: {
6336263390
description:
63363-
'Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
63391+
'Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
6336463392
operationId: 'seamCustomerV1CustomersAutomationsGetGet',
63365-
parameters: [
63366-
{
63367-
in: 'query',
63368-
name: 'customer_key',
63369-
required: true,
63370-
schema: { description: 'Key of the customer.', type: 'string' },
63371-
},
63372-
],
6337363393
responses: {
6337463394
200: {
6337563395
content: {
@@ -63648,11 +63668,7 @@ export default {
6364863668
400: { description: 'Bad Request' },
6364963669
401: { description: 'Unauthorized' },
6365063670
},
63651-
security: [
63652-
{ pat_with_workspace: [] },
63653-
{ console_session_with_workspace: [] },
63654-
{ api_key: [] },
63655-
],
63671+
security: [{ client_session_with_customer: [] }],
6365663672
summary: '/seam/customer/v1/customers/automations/get',
6365763673
tags: [],
6365863674
'x-fern-sdk-group-name': [
@@ -63669,24 +63685,8 @@ export default {
6366963685
},
6367063686
post: {
6367163687
description:
63672-
'Gets the automation configuration for a specific customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
63688+
'Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).',
6367363689
operationId: 'seamCustomerV1CustomersAutomationsGetPost',
63674-
requestBody: {
63675-
content: {
63676-
'application/json': {
63677-
schema: {
63678-
properties: {
63679-
customer_key: {
63680-
description: 'Key of the customer.',
63681-
type: 'string',
63682-
},
63683-
},
63684-
required: ['customer_key'],
63685-
type: 'object',
63686-
},
63687-
},
63688-
},
63689-
},
6369063690
responses: {
6369163691
200: {
6369263692
content: {
@@ -63965,11 +63965,7 @@ export default {
6396563965
400: { description: 'Bad Request' },
6396663966
401: { description: 'Unauthorized' },
6396763967
},
63968-
security: [
63969-
{ pat_with_workspace: [] },
63970-
{ console_session_with_workspace: [] },
63971-
{ api_key: [] },
63972-
],
63968+
security: [{ client_session_with_customer: [] }],
6397363969
summary: '/seam/customer/v1/customers/automations/get',
6397463970
tags: [],
6397563971
'x-fern-sdk-group-name': [

src/lib/seam/connect/route-types.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69458,7 +69458,10 @@ export type Routes = {
6945869458
method: 'GET' | 'POST'
6945969459
queryParams: {}
6946069460
jsonBody: {}
69461-
commonParams: {}
69461+
commonParams: {
69462+
/** Key of the customer to get automation config for. */
69463+
customer_key?: string | undefined
69464+
}
6946269465
formData: {}
6946369466
jsonResponse: {
6946469467
access_rules?:
@@ -69569,6 +69572,8 @@ export type Routes = {
6956969572
method: 'PATCH' | 'POST'
6957069573
queryParams: {}
6957169574
jsonBody: {
69575+
/** Key of the customer to update automation config for. */
69576+
customer_key?: string | undefined
6957269577
/** Access automation rules configuration. */
6957369578
access_rules?:
6957469579
| {
@@ -69898,10 +69903,7 @@ export type Routes = {
6989869903
method: 'GET' | 'POST'
6989969904
queryParams: {}
6990069905
jsonBody: {}
69901-
commonParams: {
69902-
/** Key of the customer. */
69903-
customer_key: string
69904-
}
69906+
commonParams: {}
6990569907
formData: {}
6990669908
jsonResponse: {
6990769909
automation: {

0 commit comments

Comments
 (0)