@seamapi/types 1.628.0 → 1.629.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 +179 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +292 -0
- package/dist/index.cjs +179 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +239 -0
- package/lib/seam/connect/openapi.js +179 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +53 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +182 -0
- package/src/lib/seam/connect/route-types.ts +57 -0
|
@@ -57298,6 +57298,24 @@ export type Routes = {
|
|
|
57298
57298
|
};
|
|
57299
57299
|
};
|
|
57300
57300
|
};
|
|
57301
|
+
'/seam/customer/v1/connectors/delete': {
|
|
57302
|
+
route: '/seam/customer/v1/connectors/delete';
|
|
57303
|
+
method: 'POST';
|
|
57304
|
+
queryParams: {};
|
|
57305
|
+
jsonBody: {
|
|
57306
|
+
/** ID of the connector to delete */
|
|
57307
|
+
connector_id: string;
|
|
57308
|
+
};
|
|
57309
|
+
commonParams: {};
|
|
57310
|
+
formData: {};
|
|
57311
|
+
jsonResponse: {
|
|
57312
|
+
connector: {
|
|
57313
|
+
connector_id: string;
|
|
57314
|
+
connector_type: string;
|
|
57315
|
+
status: 'deleted';
|
|
57316
|
+
};
|
|
57317
|
+
};
|
|
57318
|
+
};
|
|
57301
57319
|
'/seam/customer/v1/connectors/list': {
|
|
57302
57320
|
route: '/seam/customer/v1/connectors/list';
|
|
57303
57321
|
method: 'GET' | 'POST';
|
|
@@ -57336,6 +57354,41 @@ export type Routes = {
|
|
|
57336
57354
|
};
|
|
57337
57355
|
};
|
|
57338
57356
|
};
|
|
57357
|
+
'/seam/customer/v1/connectors/update': {
|
|
57358
|
+
route: '/seam/customer/v1/connectors/update';
|
|
57359
|
+
method: 'POST';
|
|
57360
|
+
queryParams: {};
|
|
57361
|
+
jsonBody: {
|
|
57362
|
+
/** ID of the connector to update */
|
|
57363
|
+
connector_id: string;
|
|
57364
|
+
/** Key identifying the customer */
|
|
57365
|
+
customer_key?: string | undefined;
|
|
57366
|
+
/** Instance-specific configuration for the connector */
|
|
57367
|
+
config: {
|
|
57368
|
+
client_token?: string | undefined;
|
|
57369
|
+
access_token?: string | undefined;
|
|
57370
|
+
client?: string;
|
|
57371
|
+
enterprise_ids?: string[] | undefined;
|
|
57372
|
+
enterprise_id?: string | undefined;
|
|
57373
|
+
} | {};
|
|
57374
|
+
};
|
|
57375
|
+
commonParams: {};
|
|
57376
|
+
formData: {};
|
|
57377
|
+
jsonResponse: {
|
|
57378
|
+
connector: {
|
|
57379
|
+
connector_id: string;
|
|
57380
|
+
connector_type: string;
|
|
57381
|
+
status: 'active' | 'inactive' | 'error';
|
|
57382
|
+
webhook_subscription?: {
|
|
57383
|
+
subscription_id: string;
|
|
57384
|
+
webhook_url: string;
|
|
57385
|
+
events: string[];
|
|
57386
|
+
status: 'active' | 'inactive' | 'error';
|
|
57387
|
+
} | undefined;
|
|
57388
|
+
error?: string | undefined;
|
|
57389
|
+
};
|
|
57390
|
+
};
|
|
57391
|
+
};
|
|
57339
57392
|
'/seam/customer/v1/events/list': {
|
|
57340
57393
|
route: '/seam/customer/v1/events/list';
|
|
57341
57394
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -52560,6 +52560,70 @@ export default {
|
|
|
52560
52560
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
52561
52561
|
},
|
|
52562
52562
|
},
|
|
52563
|
+
'/seam/customer/v1/connectors/delete': {
|
|
52564
|
+
post: {
|
|
52565
|
+
description:
|
|
52566
|
+
'Deletes a connector from a workspace. The connector must already be assigned to a workspace.\nThis will remove the connector row from the database and deactivate any active connections.',
|
|
52567
|
+
operationId: 'seamCustomerV1ConnectorsDeletePost',
|
|
52568
|
+
requestBody: {
|
|
52569
|
+
content: {
|
|
52570
|
+
'application/json': {
|
|
52571
|
+
schema: {
|
|
52572
|
+
properties: {
|
|
52573
|
+
connector_id: {
|
|
52574
|
+
description: 'ID of the connector to delete',
|
|
52575
|
+
minLength: 1,
|
|
52576
|
+
type: 'string',
|
|
52577
|
+
},
|
|
52578
|
+
},
|
|
52579
|
+
required: ['connector_id'],
|
|
52580
|
+
type: 'object',
|
|
52581
|
+
},
|
|
52582
|
+
},
|
|
52583
|
+
},
|
|
52584
|
+
},
|
|
52585
|
+
responses: {
|
|
52586
|
+
200: {
|
|
52587
|
+
content: {
|
|
52588
|
+
'application/json': {
|
|
52589
|
+
schema: {
|
|
52590
|
+
properties: {
|
|
52591
|
+
connector: {
|
|
52592
|
+
properties: {
|
|
52593
|
+
connector_id: { type: 'string' },
|
|
52594
|
+
connector_type: { type: 'string' },
|
|
52595
|
+
status: { enum: ['deleted'], type: 'string' },
|
|
52596
|
+
},
|
|
52597
|
+
required: ['connector_id', 'connector_type', 'status'],
|
|
52598
|
+
type: 'object',
|
|
52599
|
+
},
|
|
52600
|
+
ok: { type: 'boolean' },
|
|
52601
|
+
},
|
|
52602
|
+
required: ['connector', 'ok'],
|
|
52603
|
+
type: 'object',
|
|
52604
|
+
},
|
|
52605
|
+
},
|
|
52606
|
+
},
|
|
52607
|
+
description: 'OK',
|
|
52608
|
+
},
|
|
52609
|
+
400: { description: 'Bad Request' },
|
|
52610
|
+
401: { description: 'Unauthorized' },
|
|
52611
|
+
},
|
|
52612
|
+
security: [
|
|
52613
|
+
{ api_key: [] },
|
|
52614
|
+
{ client_session_with_customer: [] },
|
|
52615
|
+
{ console_session_with_workspace: [] },
|
|
52616
|
+
],
|
|
52617
|
+
summary: '/seam/customer/v1/connectors/delete',
|
|
52618
|
+
tags: [],
|
|
52619
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52620
|
+
'x-fern-sdk-method-name': 'delete',
|
|
52621
|
+
'x-fern-sdk-return-value': 'connector',
|
|
52622
|
+
'x-response-key': 'connector',
|
|
52623
|
+
'x-title': 'Delete Connector',
|
|
52624
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
52625
|
+
},
|
|
52626
|
+
},
|
|
52563
52627
|
'/seam/customer/v1/connectors/list': {
|
|
52564
52628
|
get: {
|
|
52565
52629
|
description:
|
|
@@ -52754,6 +52818,124 @@ export default {
|
|
|
52754
52818
|
'x-undocumented': 'Only used internally.',
|
|
52755
52819
|
},
|
|
52756
52820
|
},
|
|
52821
|
+
'/seam/customer/v1/connectors/update': {
|
|
52822
|
+
post: {
|
|
52823
|
+
description:
|
|
52824
|
+
'Updates an existing connector in a workspace. The connector must already be assigned to a workspace.\nThe connector will be reactivated with the new configuration.',
|
|
52825
|
+
operationId: 'seamCustomerV1ConnectorsUpdatePost',
|
|
52826
|
+
requestBody: {
|
|
52827
|
+
content: {
|
|
52828
|
+
'application/json': {
|
|
52829
|
+
schema: {
|
|
52830
|
+
properties: {
|
|
52831
|
+
config: {
|
|
52832
|
+
description:
|
|
52833
|
+
'Instance-specific configuration for the connector',
|
|
52834
|
+
oneOf: [
|
|
52835
|
+
{
|
|
52836
|
+
properties: {
|
|
52837
|
+
access_token: { minLength: 1, type: 'string' },
|
|
52838
|
+
client: {
|
|
52839
|
+
default: 'seam',
|
|
52840
|
+
minLength: 1,
|
|
52841
|
+
type: 'string',
|
|
52842
|
+
},
|
|
52843
|
+
client_token: { minLength: 1, type: 'string' },
|
|
52844
|
+
enterprise_id: { format: 'uuid', type: 'string' },
|
|
52845
|
+
enterprise_ids: {
|
|
52846
|
+
items: { format: 'uuid', type: 'string' },
|
|
52847
|
+
type: 'array',
|
|
52848
|
+
},
|
|
52849
|
+
},
|
|
52850
|
+
type: 'object',
|
|
52851
|
+
},
|
|
52852
|
+
{ properties: {}, type: 'object' },
|
|
52853
|
+
],
|
|
52854
|
+
},
|
|
52855
|
+
connector_id: {
|
|
52856
|
+
description: 'ID of the connector to update',
|
|
52857
|
+
minLength: 1,
|
|
52858
|
+
type: 'string',
|
|
52859
|
+
},
|
|
52860
|
+
customer_key: {
|
|
52861
|
+
description: 'Key identifying the customer',
|
|
52862
|
+
minLength: 1,
|
|
52863
|
+
type: 'string',
|
|
52864
|
+
},
|
|
52865
|
+
},
|
|
52866
|
+
required: ['connector_id', 'config'],
|
|
52867
|
+
type: 'object',
|
|
52868
|
+
},
|
|
52869
|
+
},
|
|
52870
|
+
},
|
|
52871
|
+
},
|
|
52872
|
+
responses: {
|
|
52873
|
+
200: {
|
|
52874
|
+
content: {
|
|
52875
|
+
'application/json': {
|
|
52876
|
+
schema: {
|
|
52877
|
+
properties: {
|
|
52878
|
+
connector: {
|
|
52879
|
+
properties: {
|
|
52880
|
+
connector_id: { type: 'string' },
|
|
52881
|
+
connector_type: { type: 'string' },
|
|
52882
|
+
error: { type: 'string' },
|
|
52883
|
+
status: {
|
|
52884
|
+
enum: ['active', 'inactive', 'error'],
|
|
52885
|
+
type: 'string',
|
|
52886
|
+
},
|
|
52887
|
+
webhook_subscription: {
|
|
52888
|
+
properties: {
|
|
52889
|
+
events: {
|
|
52890
|
+
items: { type: 'string' },
|
|
52891
|
+
type: 'array',
|
|
52892
|
+
},
|
|
52893
|
+
status: {
|
|
52894
|
+
enum: ['active', 'inactive', 'error'],
|
|
52895
|
+
type: 'string',
|
|
52896
|
+
},
|
|
52897
|
+
subscription_id: { type: 'string' },
|
|
52898
|
+
webhook_url: { type: 'string' },
|
|
52899
|
+
},
|
|
52900
|
+
required: [
|
|
52901
|
+
'subscription_id',
|
|
52902
|
+
'webhook_url',
|
|
52903
|
+
'events',
|
|
52904
|
+
'status',
|
|
52905
|
+
],
|
|
52906
|
+
type: 'object',
|
|
52907
|
+
},
|
|
52908
|
+
},
|
|
52909
|
+
required: ['connector_id', 'connector_type', 'status'],
|
|
52910
|
+
type: 'object',
|
|
52911
|
+
},
|
|
52912
|
+
ok: { type: 'boolean' },
|
|
52913
|
+
},
|
|
52914
|
+
required: ['connector', 'ok'],
|
|
52915
|
+
type: 'object',
|
|
52916
|
+
},
|
|
52917
|
+
},
|
|
52918
|
+
},
|
|
52919
|
+
description: 'OK',
|
|
52920
|
+
},
|
|
52921
|
+
400: { description: 'Bad Request' },
|
|
52922
|
+
401: { description: 'Unauthorized' },
|
|
52923
|
+
},
|
|
52924
|
+
security: [
|
|
52925
|
+
{ api_key: [] },
|
|
52926
|
+
{ client_session_with_customer: [] },
|
|
52927
|
+
{ console_session_with_workspace: [] },
|
|
52928
|
+
],
|
|
52929
|
+
summary: '/seam/customer/v1/connectors/update',
|
|
52930
|
+
tags: [],
|
|
52931
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52932
|
+
'x-fern-sdk-method-name': 'update',
|
|
52933
|
+
'x-fern-sdk-return-value': 'connector',
|
|
52934
|
+
'x-response-key': 'connector',
|
|
52935
|
+
'x-title': 'Update Connector',
|
|
52936
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
52937
|
+
},
|
|
52938
|
+
},
|
|
52757
52939
|
'/seam/customer/v1/events/list': {
|
|
52758
52940
|
get: {
|
|
52759
52941
|
description:
|
|
@@ -68108,6 +68108,24 @@ export type Routes = {
|
|
|
68108
68108
|
}
|
|
68109
68109
|
}
|
|
68110
68110
|
}
|
|
68111
|
+
'/seam/customer/v1/connectors/delete': {
|
|
68112
|
+
route: '/seam/customer/v1/connectors/delete'
|
|
68113
|
+
method: 'POST'
|
|
68114
|
+
queryParams: {}
|
|
68115
|
+
jsonBody: {
|
|
68116
|
+
/** ID of the connector to delete */
|
|
68117
|
+
connector_id: string
|
|
68118
|
+
}
|
|
68119
|
+
commonParams: {}
|
|
68120
|
+
formData: {}
|
|
68121
|
+
jsonResponse: {
|
|
68122
|
+
connector: {
|
|
68123
|
+
connector_id: string
|
|
68124
|
+
connector_type: string
|
|
68125
|
+
status: 'deleted'
|
|
68126
|
+
}
|
|
68127
|
+
}
|
|
68128
|
+
}
|
|
68111
68129
|
'/seam/customer/v1/connectors/list': {
|
|
68112
68130
|
route: '/seam/customer/v1/connectors/list'
|
|
68113
68131
|
method: 'GET' | 'POST'
|
|
@@ -68146,6 +68164,45 @@ export type Routes = {
|
|
|
68146
68164
|
}
|
|
68147
68165
|
}
|
|
68148
68166
|
}
|
|
68167
|
+
'/seam/customer/v1/connectors/update': {
|
|
68168
|
+
route: '/seam/customer/v1/connectors/update'
|
|
68169
|
+
method: 'POST'
|
|
68170
|
+
queryParams: {}
|
|
68171
|
+
jsonBody: {
|
|
68172
|
+
/** ID of the connector to update */
|
|
68173
|
+
connector_id: string
|
|
68174
|
+
/** Key identifying the customer */
|
|
68175
|
+
customer_key?: string | undefined
|
|
68176
|
+
/** Instance-specific configuration for the connector */
|
|
68177
|
+
config:
|
|
68178
|
+
| {
|
|
68179
|
+
client_token?: string | undefined
|
|
68180
|
+
access_token?: string | undefined
|
|
68181
|
+
client?: string
|
|
68182
|
+
enterprise_ids?: string[] | undefined
|
|
68183
|
+
enterprise_id?: string | undefined
|
|
68184
|
+
}
|
|
68185
|
+
| {}
|
|
68186
|
+
}
|
|
68187
|
+
commonParams: {}
|
|
68188
|
+
formData: {}
|
|
68189
|
+
jsonResponse: {
|
|
68190
|
+
connector: {
|
|
68191
|
+
connector_id: string
|
|
68192
|
+
connector_type: string
|
|
68193
|
+
status: 'active' | 'inactive' | 'error'
|
|
68194
|
+
webhook_subscription?:
|
|
68195
|
+
| {
|
|
68196
|
+
subscription_id: string
|
|
68197
|
+
webhook_url: string
|
|
68198
|
+
events: string[]
|
|
68199
|
+
status: 'active' | 'inactive' | 'error'
|
|
68200
|
+
}
|
|
68201
|
+
| undefined
|
|
68202
|
+
error?: string | undefined
|
|
68203
|
+
}
|
|
68204
|
+
}
|
|
68205
|
+
}
|
|
68149
68206
|
'/seam/customer/v1/events/list': {
|
|
68150
68207
|
route: '/seam/customer/v1/events/list'
|
|
68151
68208
|
method: 'GET' | 'POST'
|