@permute/sdk 0.2.0 → 0.3.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/README.md CHANGED
@@ -151,6 +151,29 @@ const client = new PermuteClient({
151
151
  grant access. The selected ID is available as `client.workspaceId`. Organization
152
152
  APIs such as `client.workspaces.list()` do not send a workspace header.
153
153
 
154
+ ## Connect Customer Sources
155
+
156
+ Create a hosted setup link from your server after authorizing the customer's
157
+ workspace. Use `Providers` for provider IDs (for example, `Providers.HUBSPOT`).
158
+
159
+ ```ts
160
+ import { Providers } from '@permute/sdk';
161
+
162
+ const session = await client.connectorSessions.create({
163
+ provider: Providers.HUBSPOT,
164
+ name: 'CRM',
165
+ });
166
+ // Send session.url to the authorized customer to open in a new tab or popup.
167
+
168
+ // Reconnect an existing source; its provider is inferred.
169
+ const reconnect = await client.connectorSessions.create({
170
+ connectorId: savedConnectorId,
171
+ });
172
+ ```
173
+
174
+ See the [hosted connector setup guide](https://permute.ai/docs/connector-sessions)
175
+ for completion checks and return URLs.
176
+
154
177
  ## Upload Files
155
178
 
156
179
  Use the one-call helper when you have file bytes in process. It creates a file
@@ -202,13 +225,13 @@ data. The SDK accepts JavaScript objects, encodes them as chunked NDJSON, and
202
225
  uploads the result to a signed S3 target; callers do not need temporary files.
203
226
 
204
227
  ```ts
205
- import { CONTEXT, PermuteClient } from '@permute/sdk';
228
+ import { Context, PermuteClient } from '@permute/sdk';
206
229
 
207
230
  const dataset = await client.datasets.create({
208
231
  type: 'custom',
209
232
  key: 'quickbooks',
210
233
  name: 'QuickBooks',
211
- context: [CONTEXT.QuickBooks],
234
+ context: [Context.QUICKBOOKS],
212
235
  });
213
236
 
214
237
  await dataset.replace({
@@ -219,6 +242,10 @@ await dataset.replace({
219
242
  console.log(dataset.sourceId, dataset.version, dataset.data.tables);
220
243
  ```
221
244
 
245
+ Dataset `context` accepts string identifiers, with `Context` providing named
246
+ constants for known contexts (such as `Context.QUICKBOOKS`). It is not restricted
247
+ to the connector provider list. Use `Providers` when selecting a connector.
248
+
222
249
  `replace()` sends the complete dataset snapshot. Tables omitted from the call
223
250
  are removed, while tables with the same name keep their stable identity for
224
251
  reports and dashboards. Retrying an identical replacement is a no-op.
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Database, DatabaseList, DatabaseCreateRequest, DatabaseTables, DatabaseTableCreateRequest, DatabaseTableCreated, DatabaseRecords, DatabaseRecordsQuery, DatabaseTransactionRequest, DatabaseTransactionReceipt, ResourceVersionState, ResourceRevisionList, ResourceRevision, ResourceVersionRequest, Fact, FactList, FactWriteRequest, SkillList, SkillContent, SkillWriteRequest, KnowledgeWriteResponse, OperationRunGroup, OperationRunQuery, Operation, OperationList, OperationListQuery, OperationSource, OperationSourceUpdateRequest, OperationUpdateRequest, OperationRunRequest, OperationRunStarted, OperationRunList, OperationRunOutput, DataFlow, DataFlowCreateRequest, DataFlowCommandRequest, DataFlowCommandResponse, Workspace, WorkspaceCreateRequest, WorkspaceDeleteResponse, WorkspaceList, WorkspaceUpdateRequest, AnswerRequest, AnswerJobResponse, AnswerResponse, PermuteClientOptions, PermuteRequestOptions, QueryRequest, QueryResponse, SearchRequest, SearchResponse, SourceDetail, SourceList, CustomDatasetCreateRequest, DatasetDeleteResponse, DatasetResponse, FileDatasetCreateRequest, FileDatasetResponse, DatasetRows, CustomDatasetResponse, DashboardSource, DashboardSourceUpdateRequest } from './types.js';
1
+ import type { ConnectorSession, ConnectorSessionCreated, ConnectorSessionCreateRequest, Database, DatabaseList, DatabaseCreateRequest, DatabaseTables, DatabaseTableCreateRequest, DatabaseTableCreated, DatabaseRecords, DatabaseRecordsQuery, DatabaseTransactionRequest, DatabaseTransactionReceipt, ResourceVersionState, ResourceRevisionList, ResourceRevision, ResourceVersionRequest, Fact, FactList, FactWriteRequest, SkillList, SkillContent, SkillWriteRequest, KnowledgeWriteResponse, OperationRunGroup, OperationRunQuery, Operation, OperationList, OperationListQuery, OperationSource, OperationSourceUpdateRequest, OperationUpdateRequest, OperationRunRequest, OperationRunStarted, OperationRunList, OperationRunOutput, DataFlow, DataFlowCreateRequest, DataFlowCommandRequest, DataFlowCommandResponse, Workspace, WorkspaceCreateRequest, WorkspaceDeleteResponse, WorkspaceList, WorkspaceUpdateRequest, AnswerRequest, AnswerJobResponse, AnswerResponse, PermuteClientOptions, PermuteRequestOptions, QueryRequest, QueryResponse, SearchRequest, SearchResponse, SourceDetail, SourceList, CustomDatasetCreateRequest, DatasetDeleteResponse, DatasetResponse, FileDatasetCreateRequest, FileDatasetResponse, DatasetRows, CustomDatasetResponse, DashboardSource, DashboardSourceUpdateRequest } from './types.js';
2
2
  export declare class PermuteApiError extends Error {
3
3
  readonly status: number;
4
4
  readonly code: string;
@@ -92,6 +92,10 @@ export declare class PermuteClient {
92
92
  records(databaseId: string, table: string, query?: Partial<DatabaseRecordsQuery>, options?: PermuteRequestOptions): Promise<DatabaseRecords>;
93
93
  transact(databaseId: string, body: DatabaseTransactionRequest, options?: PermuteRequestOptions): Promise<DatabaseTransactionReceipt>;
94
94
  };
95
+ readonly connectorSessions: {
96
+ create(request: ConnectorSessionCreateRequest, options?: PermuteRequestOptions): Promise<ConnectorSessionCreated>;
97
+ get(sessionId: string, options?: PermuteRequestOptions): Promise<ConnectorSession>;
98
+ };
95
99
  readonly workspaces: {
96
100
  list: (options?: PermuteRequestOptions) => Promise<WorkspaceList>;
97
101
  create: (request: WorkspaceCreateRequest, options?: PermuteRequestOptions) => Promise<Workspace>;
package/dist/client.js CHANGED
@@ -267,6 +267,7 @@ export class PermuteClient {
267
267
  skills;
268
268
  organizationSkills;
269
269
  databases;
270
+ connectorSessions;
270
271
  workspaces;
271
272
  sources;
272
273
  operations;
@@ -331,6 +332,10 @@ export class PermuteClient {
331
332
  records: (databaseId, table, query = {}, options) => this.request('databaseRecordsList', { pathParams: { databaseId, table }, query }, options),
332
333
  transact: (databaseId, body, options) => this.request('databaseTransactionsCreate', { pathParams: { databaseId }, body }, options),
333
334
  };
335
+ this.connectorSessions = {
336
+ create: (body, options) => this.request('connectorSessionsCreate', { body }, options),
337
+ get: (sessionId, options) => this.request('connectorSessionsGet', { pathParams: { sessionId } }, options),
338
+ };
334
339
  this.workspaces = {
335
340
  list: (requestOptions) => this.request('workspacesList', {}, requestOptions),
336
341
  create: (request, requestOptions) => this.request('workspacesCreate', { body: request }, requestOptions),
@@ -124,6 +124,54 @@ export interface components {
124
124
  name: string;
125
125
  provider?: string;
126
126
  };
127
+ /** @enum {string} */
128
+ ConnectorProviderId: 'acumatica' | 'attio' | 'autodesk' | 'bigquery' | 'billcom' | 'brex' | 'double' | 'fireflies' | 'googleads' | 'granola' | 'hubspot' | 'klaviyo' | 'mercury' | 'meta_ads' | 'monday' | 'procore' | 'quickbooks' | 'quo' | 's3' | 'salesforce' | 'shopify' | 'stripe' | 'supabase' | 'xero';
129
+ ConnectorSession: {
130
+ connectorId: string;
131
+ connectorStatus: string;
132
+ /** Format: date-time */
133
+ expiresAt: string;
134
+ id: string;
135
+ provider: string;
136
+ /** @enum {string} */
137
+ status: 'pending' | 'in_progress' | 'authorized' | 'completed' | 'expired';
138
+ };
139
+ ConnectorSessionCreated: {
140
+ connectorId: string;
141
+ connectorStatus: string;
142
+ /** Format: date-time */
143
+ expiresAt: string;
144
+ id: string;
145
+ provider: string;
146
+ /** @enum {string} */
147
+ status: 'pending' | 'in_progress' | 'authorized' | 'completed' | 'expired';
148
+ /** Format: uri */
149
+ url: string;
150
+ };
151
+ ConnectorSessionCreateRequest: {
152
+ config?: {
153
+ [key: string]: unknown;
154
+ };
155
+ connectorId?: string;
156
+ name?: string;
157
+ /** @enum {string} */
158
+ provider: 'acumatica' | 'attio' | 'autodesk' | 'bigquery' | 'billcom' | 'brex' | 'double' | 'fireflies' | 'googleads' | 'granola' | 'hubspot' | 'klaviyo' | 'mercury' | 'meta_ads' | 'monday' | 'procore' | 'quickbooks' | 'quo' | 's3' | 'salesforce' | 'shopify' | 'stripe' | 'supabase' | 'xero';
159
+ /** Format: uri */
160
+ returnUrl?: string;
161
+ } | {
162
+ config?: {
163
+ [key: string]: unknown;
164
+ };
165
+ connectorId: string;
166
+ name?: string;
167
+ /** @enum {string} */
168
+ provider?: 'acumatica' | 'attio' | 'autodesk' | 'bigquery' | 'billcom' | 'brex' | 'double' | 'fireflies' | 'googleads' | 'granola' | 'hubspot' | 'klaviyo' | 'mercury' | 'meta_ads' | 'monday' | 'procore' | 'quickbooks' | 'quo' | 's3' | 'salesforce' | 'shopify' | 'stripe' | 'supabase' | 'xero';
169
+ /** Format: uri */
170
+ returnUrl?: string;
171
+ };
172
+ ConnectorSessionIdParams: {
173
+ sessionId: string;
174
+ };
127
175
  CustomDatasetResponse: {
128
176
  context: string[];
129
177
  /** Format: date-time */
@@ -8,5 +8,31 @@ export interface RuntimeRoute {
8
8
  querySchema: JsonSchema | null;
9
9
  responseSchema: JsonSchema;
10
10
  }
11
- export type PublicApiOperationId = 'resourceRevisionsList' | 'resourceRevisionsGet' | 'resourceRevisionsRestore' | 'resourcesPublish' | 'workspacesList' | 'workspacesCreate' | 'workspacesGet' | 'workspacesUpdate' | 'workspacesDelete' | 'sourcesList' | 'sourcesGet' | 'dashboardsSourceGet' | 'dashboardsSourceUpdate' | 'datasetsCreate' | 'datasetsGetByKey' | 'datasetsGet' | 'datasetsDelete' | 'datasetsDownload' | 'datasetsWriteTables' | 'searchCreate' | 'answerJobsCreate' | 'answerJobsGet' | 'queriesCreate' | 'operationRunsList' | 'operationsList' | 'operationsGet' | 'operationsUpdate' | 'operationsSourceGet' | 'operationsSourceUpdate' | 'operationsRunsList' | 'operationsRun' | 'operationsRunOutput' | 'dataFlowsCreate' | 'dataFlowsGet' | 'dataFlowsCommand' | 'factsList' | 'factsCreate' | 'factsGet' | 'factsUpdate' | 'factsDelete' | 'skillsList' | 'skillsGet' | 'skillsUpdate' | 'skillsDelete' | 'organizationSkillsList' | 'organizationSkillsGet' | 'organizationSkillsUpdate' | 'organizationSkillsDelete' | 'databasesList' | 'databasesCreate' | 'databasesGet' | 'databasesDelete' | 'databaseTablesList' | 'databaseTablesCreate' | 'databaseRecordsList' | 'databaseTransactionsCreate';
11
+ export type PublicApiOperationId = 'connectorSessionsCreate' | 'connectorSessionsGet' | 'resourceRevisionsList' | 'resourceRevisionsGet' | 'resourceRevisionsRestore' | 'resourcesPublish' | 'workspacesList' | 'workspacesCreate' | 'workspacesGet' | 'workspacesUpdate' | 'workspacesDelete' | 'sourcesList' | 'sourcesGet' | 'dashboardsSourceGet' | 'dashboardsSourceUpdate' | 'datasetsCreate' | 'datasetsGetByKey' | 'datasetsGet' | 'datasetsDelete' | 'datasetsDownload' | 'datasetsWriteTables' | 'searchCreate' | 'answerJobsCreate' | 'answerJobsGet' | 'queriesCreate' | 'operationRunsList' | 'operationsList' | 'operationsGet' | 'operationsUpdate' | 'operationsSourceGet' | 'operationsSourceUpdate' | 'operationsRunsList' | 'operationsRun' | 'operationsRunOutput' | 'dataFlowsCreate' | 'dataFlowsGet' | 'dataFlowsCommand' | 'factsList' | 'factsCreate' | 'factsGet' | 'factsUpdate' | 'factsDelete' | 'skillsList' | 'skillsGet' | 'skillsUpdate' | 'skillsDelete' | 'organizationSkillsList' | 'organizationSkillsGet' | 'organizationSkillsUpdate' | 'organizationSkillsDelete' | 'databasesList' | 'databasesCreate' | 'databasesGet' | 'databasesDelete' | 'databaseTablesList' | 'databaseTablesCreate' | 'databaseRecordsList' | 'databaseTransactionsCreate';
12
12
  export declare const publicApiRoutes: Record<PublicApiOperationId, RuntimeRoute>;
13
+ export declare const Providers: {
14
+ readonly ACUMATICA: "acumatica";
15
+ readonly ATTIO: "attio";
16
+ readonly AUTODESK: "autodesk";
17
+ readonly BIGQUERY: "bigquery";
18
+ readonly BILLCOM: "billcom";
19
+ readonly BREX: "brex";
20
+ readonly DOUBLE: "double";
21
+ readonly FIREFLIES: "fireflies";
22
+ readonly GOOGLEADS: "googleads";
23
+ readonly GRANOLA: "granola";
24
+ readonly HUBSPOT: "hubspot";
25
+ readonly KLAVIYO: "klaviyo";
26
+ readonly MERCURY: "mercury";
27
+ readonly META_ADS: "meta_ads";
28
+ readonly MONDAY: "monday";
29
+ readonly PROCORE: "procore";
30
+ readonly QUICKBOOKS: "quickbooks";
31
+ readonly QUO: "quo";
32
+ readonly S3: "s3";
33
+ readonly SALESFORCE: "salesforce";
34
+ readonly SHOPIFY: "shopify";
35
+ readonly STRIPE: "stripe";
36
+ readonly SUPABASE: "supabase";
37
+ readonly XERO: "xero";
38
+ };
@@ -1,5 +1,190 @@
1
1
  // This file is generated by scripts/generate-contract.ts. Do not edit.
2
2
  export const publicApiRoutes = {
3
+ connectorSessionsCreate: {
4
+ operationId: 'connectorSessionsCreate',
5
+ method: 'POST',
6
+ path: '/v1/connector-sessions',
7
+ scope: 'workspace',
8
+ bodySchema: {
9
+ anyOf: [
10
+ {
11
+ type: 'object',
12
+ properties: {
13
+ provider: {
14
+ type: 'string',
15
+ enum: [
16
+ 'acumatica',
17
+ 'attio',
18
+ 'autodesk',
19
+ 'bigquery',
20
+ 'billcom',
21
+ 'brex',
22
+ 'double',
23
+ 'fireflies',
24
+ 'googleads',
25
+ 'granola',
26
+ 'hubspot',
27
+ 'klaviyo',
28
+ 'mercury',
29
+ 'meta_ads',
30
+ 'monday',
31
+ 'procore',
32
+ 'quickbooks',
33
+ 'quo',
34
+ 's3',
35
+ 'salesforce',
36
+ 'shopify',
37
+ 'stripe',
38
+ 'supabase',
39
+ 'xero',
40
+ ],
41
+ },
42
+ name: {
43
+ type: 'string',
44
+ minLength: 1,
45
+ maxLength: 255,
46
+ },
47
+ connectorId: {
48
+ type: 'string',
49
+ pattern: '^conn_[a-z0-9]{24}$',
50
+ },
51
+ config: {
52
+ type: 'object',
53
+ additionalProperties: {},
54
+ },
55
+ returnUrl: {
56
+ type: 'string',
57
+ maxLength: 2047,
58
+ format: 'uri',
59
+ },
60
+ },
61
+ required: ['provider'],
62
+ additionalProperties: false,
63
+ },
64
+ {
65
+ type: 'object',
66
+ properties: {
67
+ provider: {
68
+ type: 'string',
69
+ enum: [
70
+ 'acumatica',
71
+ 'attio',
72
+ 'autodesk',
73
+ 'bigquery',
74
+ 'billcom',
75
+ 'brex',
76
+ 'double',
77
+ 'fireflies',
78
+ 'googleads',
79
+ 'granola',
80
+ 'hubspot',
81
+ 'klaviyo',
82
+ 'mercury',
83
+ 'meta_ads',
84
+ 'monday',
85
+ 'procore',
86
+ 'quickbooks',
87
+ 'quo',
88
+ 's3',
89
+ 'salesforce',
90
+ 'shopify',
91
+ 'stripe',
92
+ 'supabase',
93
+ 'xero',
94
+ ],
95
+ },
96
+ name: {
97
+ type: 'string',
98
+ minLength: 1,
99
+ maxLength: 255,
100
+ },
101
+ connectorId: {
102
+ type: 'string',
103
+ pattern: '^conn_[a-z0-9]{24}$',
104
+ },
105
+ config: {
106
+ type: 'object',
107
+ additionalProperties: {},
108
+ },
109
+ returnUrl: {
110
+ type: 'string',
111
+ maxLength: 2047,
112
+ format: 'uri',
113
+ },
114
+ },
115
+ required: ['connectorId'],
116
+ additionalProperties: false,
117
+ },
118
+ ],
119
+ },
120
+ querySchema: null,
121
+ responseSchema: {
122
+ type: 'object',
123
+ properties: {
124
+ id: {
125
+ type: 'string',
126
+ },
127
+ connectorId: {
128
+ type: 'string',
129
+ },
130
+ provider: {
131
+ type: 'string',
132
+ },
133
+ status: {
134
+ type: 'string',
135
+ enum: ['pending', 'in_progress', 'authorized', 'completed', 'expired'],
136
+ },
137
+ expiresAt: {
138
+ type: 'string',
139
+ format: 'date-time',
140
+ },
141
+ connectorStatus: {
142
+ type: 'string',
143
+ },
144
+ url: {
145
+ type: 'string',
146
+ format: 'uri',
147
+ },
148
+ },
149
+ required: ['id', 'connectorId', 'provider', 'status', 'expiresAt', 'connectorStatus', 'url'],
150
+ additionalProperties: false,
151
+ },
152
+ },
153
+ connectorSessionsGet: {
154
+ operationId: 'connectorSessionsGet',
155
+ method: 'GET',
156
+ path: '/v1/connector-sessions/{sessionId}',
157
+ scope: 'workspace',
158
+ bodySchema: null,
159
+ querySchema: null,
160
+ responseSchema: {
161
+ type: 'object',
162
+ properties: {
163
+ id: {
164
+ type: 'string',
165
+ },
166
+ connectorId: {
167
+ type: 'string',
168
+ },
169
+ provider: {
170
+ type: 'string',
171
+ },
172
+ status: {
173
+ type: 'string',
174
+ enum: ['pending', 'in_progress', 'authorized', 'completed', 'expired'],
175
+ },
176
+ expiresAt: {
177
+ type: 'string',
178
+ format: 'date-time',
179
+ },
180
+ connectorStatus: {
181
+ type: 'string',
182
+ },
183
+ },
184
+ required: ['id', 'connectorId', 'provider', 'status', 'expiresAt', 'connectorStatus'],
185
+ additionalProperties: false,
186
+ },
187
+ },
3
188
  resourceRevisionsList: {
4
189
  operationId: 'resourceRevisionsList',
5
190
  method: 'GET',
@@ -5515,3 +5700,29 @@ export const publicApiRoutes = {
5515
5700
  },
5516
5701
  },
5517
5702
  };
5703
+ export const Providers = {
5704
+ ACUMATICA: 'acumatica',
5705
+ ATTIO: 'attio',
5706
+ AUTODESK: 'autodesk',
5707
+ BIGQUERY: 'bigquery',
5708
+ BILLCOM: 'billcom',
5709
+ BREX: 'brex',
5710
+ DOUBLE: 'double',
5711
+ FIREFLIES: 'fireflies',
5712
+ GOOGLEADS: 'googleads',
5713
+ GRANOLA: 'granola',
5714
+ HUBSPOT: 'hubspot',
5715
+ KLAVIYO: 'klaviyo',
5716
+ MERCURY: 'mercury',
5717
+ META_ADS: 'meta_ads',
5718
+ MONDAY: 'monday',
5719
+ PROCORE: 'procore',
5720
+ QUICKBOOKS: 'quickbooks',
5721
+ QUO: 'quo',
5722
+ S3: 's3',
5723
+ SALESFORCE: 'salesforce',
5724
+ SHOPIFY: 'shopify',
5725
+ STRIPE: 'stripe',
5726
+ SUPABASE: 'supabase',
5727
+ XERO: 'xero',
5728
+ };
package/dist/index.d.ts CHANGED
@@ -1,19 +1,20 @@
1
1
  export * from './types.js';
2
2
  export * from './client.js';
3
- export declare const CONTEXT: {
4
- readonly Acumatica: "acumatica";
5
- readonly QuickBooks: "quickbooks";
6
- readonly HubSpot: "hubspot";
7
- readonly Attio: "attio";
8
- readonly BigQuery: "bigquery";
9
- readonly Billcom: "billcom";
10
- readonly Brex: "brex";
11
- readonly Double: "double";
12
- readonly Fireflies: "fireflies";
13
- readonly Klaviyo: "klaviyo";
14
- readonly Mercury: "mercury";
15
- readonly Monday: "monday";
16
- readonly Shopify: "shopify";
17
- readonly Stripe: "stripe";
18
- readonly Xero: "xero";
3
+ export { Providers } from './generated/runtime-contract.js';
4
+ export declare const Context: {
5
+ readonly ACUMATICA: "acumatica";
6
+ readonly QUICKBOOKS: "quickbooks";
7
+ readonly HUBSPOT: "hubspot";
8
+ readonly ATTIO: "attio";
9
+ readonly BIGQUERY: "bigquery";
10
+ readonly BILLCOM: "billcom";
11
+ readonly BREX: "brex";
12
+ readonly DOUBLE: "double";
13
+ readonly FIREFLIES: "fireflies";
14
+ readonly KLAVIYO: "klaviyo";
15
+ readonly MERCURY: "mercury";
16
+ readonly MONDAY: "monday";
17
+ readonly SHOPIFY: "shopify";
18
+ readonly STRIPE: "stripe";
19
+ readonly XERO: "xero";
19
20
  };
package/dist/index.js CHANGED
@@ -1,19 +1,20 @@
1
1
  export * from './types.js';
2
2
  export * from './client.js';
3
- export const CONTEXT = {
4
- Acumatica: 'acumatica',
5
- QuickBooks: 'quickbooks',
6
- HubSpot: 'hubspot',
7
- Attio: 'attio',
8
- BigQuery: 'bigquery',
9
- Billcom: 'billcom',
10
- Brex: 'brex',
11
- Double: 'double',
12
- Fireflies: 'fireflies',
13
- Klaviyo: 'klaviyo',
14
- Mercury: 'mercury',
15
- Monday: 'monday',
16
- Shopify: 'shopify',
17
- Stripe: 'stripe',
18
- Xero: 'xero',
3
+ export { Providers } from './generated/runtime-contract.js';
4
+ export const Context = {
5
+ ACUMATICA: 'acumatica',
6
+ QUICKBOOKS: 'quickbooks',
7
+ HUBSPOT: 'hubspot',
8
+ ATTIO: 'attio',
9
+ BIGQUERY: 'bigquery',
10
+ BILLCOM: 'billcom',
11
+ BREX: 'brex',
12
+ DOUBLE: 'double',
13
+ FIREFLIES: 'fireflies',
14
+ KLAVIYO: 'klaviyo',
15
+ MERCURY: 'mercury',
16
+ MONDAY: 'monday',
17
+ SHOPIFY: 'shopify',
18
+ STRIPE: 'stripe',
19
+ XERO: 'xero',
19
20
  };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import type { components } from './generated/openapi.js';
2
2
  type PublicApiSchema<Name extends keyof components['schemas']> = components['schemas'][Name];
3
+ export type ConnectorSession = PublicApiSchema<'ConnectorSession'>;
4
+ export type ConnectorSessionCreated = PublicApiSchema<'ConnectorSessionCreated'>;
5
+ export type ConnectorSessionCreateRequest = PublicApiSchema<'ConnectorSessionCreateRequest'>;
6
+ export type ConnectorProviderId = PublicApiSchema<'ConnectorProviderId'>;
3
7
  export type Workspace = PublicApiSchema<'Workspace'>;
4
8
  export type WorkspaceList = PublicApiSchema<'WorkspaceList'>;
5
9
  export type WorkspaceCreateRequest = PublicApiSchema<'WorkspaceCreateRequest'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permute/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript client for the Permute public API",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",