@hirefinn/sdk 0.1.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 +79 -9
- package/dist/cjs/client.d.ts +13 -1
- package/dist/cjs/client.js +5 -0
- package/dist/cjs/core.d.ts +14 -2
- package/dist/cjs/core.js +41 -4
- package/dist/cjs/generated/openapi.d.ts +17426 -5875
- package/dist/cjs/generated/operations.d.ts +26 -0
- package/dist/cjs/generated/operations.js +165 -0
- package/dist/cjs/generated/resources.d.ts +887 -0
- package/dist/cjs/generated/resources.js +737 -0
- package/dist/cjs/index.d.ts +4 -2
- package/dist/cjs/index.js +12 -1
- package/dist/cjs/resource.d.ts +30 -0
- package/dist/cjs/resource.js +23 -0
- package/dist/cjs/resources.d.ts +52 -59
- package/dist/cjs/resources.js +27 -37
- package/dist/cjs/types.d.ts +17 -5
- package/dist/cjs/webhooks.d.ts +57 -0
- package/dist/cjs/webhooks.js +181 -0
- package/dist/esm/client.d.ts +13 -1
- package/dist/esm/client.js +6 -1
- package/dist/esm/core.d.ts +14 -2
- package/dist/esm/core.js +39 -3
- package/dist/esm/generated/openapi.d.ts +17426 -5875
- package/dist/esm/generated/operations.d.ts +26 -0
- package/dist/esm/generated/operations.js +162 -0
- package/dist/esm/generated/resources.d.ts +887 -0
- package/dist/esm/generated/resources.js +716 -0
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/resource.d.ts +30 -0
- package/dist/esm/resource.js +19 -0
- package/dist/esm/resources.d.ts +52 -59
- package/dist/esm/resources.js +20 -35
- package/dist/esm/types.d.ts +17 -5
- package/dist/esm/webhooks.d.ts +57 -0
- package/dist/esm/webhooks.js +140 -0
- package/package.json +4 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every operation in the spec and the SDK method that calls it.
|
|
3
|
+
* Generated by scripts/generate.mjs from spec/openapi.json. Do not edit by hand: run `npm run generate`.
|
|
4
|
+
* Spec: Finn API v1 (OpenAPI 3.1.0)
|
|
5
|
+
*/
|
|
6
|
+
import type { HttpMethod } from '../types.js';
|
|
7
|
+
export interface OperationInfo {
|
|
8
|
+
operationId: string;
|
|
9
|
+
method: HttpMethod;
|
|
10
|
+
path: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
/** `x-required-scope`, when the spec lists one. */
|
|
13
|
+
scope: string | null;
|
|
14
|
+
/** The SDK method, as a property path on the client: 'finns.getFlow'. */
|
|
15
|
+
sdk: string;
|
|
16
|
+
pathParams: readonly string[];
|
|
17
|
+
/** False when a hand-written method in src/resources.ts covers it. */
|
|
18
|
+
generated: boolean;
|
|
19
|
+
/** The API may hold it for approval (HTTP 202 `pending_approval`). */
|
|
20
|
+
holdable: boolean;
|
|
21
|
+
experimental: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** 154 operations. */
|
|
24
|
+
export declare const OPERATIONS: readonly OperationInfo[];
|
|
25
|
+
/** Routes the spec marks as holdable for approval. */
|
|
26
|
+
export type SpecHoldableRoute = 'post /calls' | 'post /phone_numbers' | 'post /deployments' | 'post /agents/{id}/cases' | 'post /chat/conversations' | 'post /chat/conversations/{id}/messages' | 'post /crm/records/{id}/stage_moves' | 'post /crm/records/{id}/forms/{form_id}/submissions' | 'post /crm/records/{id}/forms/{form_id}/links' | 'post /crm/records/{id}/upload_links' | 'post /crm/imports';
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every operation in the spec and the SDK method that calls it.
|
|
3
|
+
* Generated by scripts/generate.mjs from spec/openapi.json. Do not edit by hand: run `npm run generate`.
|
|
4
|
+
* Spec: Finn API v1 (OpenAPI 3.1.0)
|
|
5
|
+
*/
|
|
6
|
+
/** 154 operations. */
|
|
7
|
+
export const OPERATIONS = [
|
|
8
|
+
{ operationId: 'listCalls', method: 'get', path: '/calls', tag: 'Calls', scope: 'voice:read', sdk: 'calls.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
9
|
+
{ operationId: 'createCall', method: 'post', path: '/calls', tag: 'Calls', scope: 'voice:write', sdk: 'calls.create', pathParams: [], generated: false, holdable: true, experimental: false },
|
|
10
|
+
{ operationId: 'retrieveCall', method: 'get', path: '/calls/{call_uuid}', tag: 'Calls', scope: 'voice:read', sdk: 'calls.retrieve', pathParams: ['call_uuid'], generated: false, holdable: false, experimental: false },
|
|
11
|
+
{ operationId: 'listFinns', method: 'get', path: '/finns', tag: 'Finns', scope: 'voice:read', sdk: 'finns.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
12
|
+
{ operationId: 'createFinn', method: 'post', path: '/finns', tag: 'Finns', scope: 'voice:write', sdk: 'finns.create', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
13
|
+
{ operationId: 'retrieveFinn', method: 'get', path: '/finns/{finn_id}', tag: 'Finns', scope: 'voice:read', sdk: 'finns.retrieve', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
14
|
+
{ operationId: 'updateFinn', method: 'patch', path: '/finns/{finn_id}', tag: 'Finns', scope: 'voice:write', sdk: 'finns.update', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
15
|
+
{ operationId: 'deleteFinn', method: 'delete', path: '/finns/{finn_id}', tag: 'Finns', scope: 'voice:write', sdk: 'finns.delete', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
16
|
+
{ operationId: 'listKnowledgeBase', method: 'get', path: '/finns/{finn_id}/knowledge_base', tag: 'Finns', scope: 'voice:read', sdk: 'finns.listKnowledgeBase', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
17
|
+
{ operationId: 'addKnowledgeBaseDocument', method: 'post', path: '/finns/{finn_id}/knowledge_base', tag: 'Finns', scope: 'voice:write', sdk: 'finns.addKnowledgeBaseDocument', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
18
|
+
{ operationId: 'listVoices', method: 'get', path: '/voices', tag: 'Voices', scope: 'voice:read', sdk: 'voices.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
19
|
+
{ operationId: 'retrieveVoice', method: 'get', path: '/voices/{voice_id}', tag: 'Voices', scope: 'voice:read', sdk: 'voices.retrieve', pathParams: ['voice_id'], generated: false, holdable: false, experimental: false },
|
|
20
|
+
{ operationId: 'listPhoneNumbers', method: 'get', path: '/phone_numbers', tag: 'Phone numbers', scope: 'voice:read', sdk: 'phoneNumbers.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
21
|
+
{ operationId: 'rentPhoneNumber', method: 'post', path: '/phone_numbers', tag: 'Phone numbers', scope: 'voice:write', sdk: 'phoneNumbers.rent', pathParams: [], generated: false, holdable: true, experimental: false },
|
|
22
|
+
{ operationId: 'searchAvailablePhoneNumbers', method: 'get', path: '/phone_numbers/available', tag: 'Phone numbers', scope: 'voice:read', sdk: 'phoneNumbers.searchAvailable', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
23
|
+
{ operationId: 'retrievePhoneNumber', method: 'get', path: '/phone_numbers/{id}', tag: 'Phone numbers', scope: 'voice:read', sdk: 'phoneNumbers.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
24
|
+
{ operationId: 'releasePhoneNumber', method: 'delete', path: '/phone_numbers/{id}', tag: 'Phone numbers', scope: 'voice:write', sdk: 'phoneNumbers.release', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
25
|
+
{ operationId: 'listAudiences', method: 'get', path: '/audiences', tag: 'Audiences', scope: 'voice:read', sdk: 'audiences.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
26
|
+
{ operationId: 'createAudience', method: 'post', path: '/audiences', tag: 'Audiences', scope: 'voice:write', sdk: 'audiences.create', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
27
|
+
{ operationId: 'retrieveAudience', method: 'get', path: '/audiences/{audience_id}', tag: 'Audiences', scope: 'voice:read', sdk: 'audiences.retrieve', pathParams: ['audience_id'], generated: false, holdable: false, experimental: false },
|
|
28
|
+
{ operationId: 'archiveAudience', method: 'delete', path: '/audiences/{audience_id}', tag: 'Audiences', scope: 'voice:write', sdk: 'audiences.archive', pathParams: ['audience_id'], generated: false, holdable: false, experimental: false },
|
|
29
|
+
{ operationId: 'listAudienceContacts', method: 'get', path: '/audiences/{audience_id}/contacts', tag: 'Audiences', scope: 'voice:read', sdk: 'audiences.listContacts', pathParams: ['audience_id'], generated: false, holdable: false, experimental: false },
|
|
30
|
+
{ operationId: 'addAudienceContacts', method: 'post', path: '/audiences/{audience_id}/contacts', tag: 'Audiences', scope: 'voice:write', sdk: 'audiences.addContacts', pathParams: ['audience_id'], generated: false, holdable: false, experimental: false },
|
|
31
|
+
{ operationId: 'removeAudienceContact', method: 'delete', path: '/audiences/{audience_id}/contacts/{phone}', tag: 'Audiences', scope: 'voice:write', sdk: 'audiences.removeContact', pathParams: ['audience_id', 'phone'], generated: false, holdable: false, experimental: false },
|
|
32
|
+
{ operationId: 'listDeployments', method: 'get', path: '/deployments', tag: 'Deployments', scope: 'voice:read', sdk: 'deployments.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
33
|
+
{ operationId: 'createOutboundDeployment', method: 'post', path: '/deployments', tag: 'Deployments', scope: 'voice:write', sdk: 'deployments.createOutbound', pathParams: [], generated: false, holdable: true, experimental: false },
|
|
34
|
+
{ operationId: 'createInboundDeployment', method: 'post', path: '/deployments/inbound', tag: 'Deployments', scope: 'voice:write', sdk: 'deployments.createInbound', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
35
|
+
{ operationId: 'retrieveDeployment', method: 'get', path: '/deployments/{id}', tag: 'Deployments', scope: 'voice:read', sdk: 'deployments.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
36
|
+
{ operationId: 'stopDeployment', method: 'post', path: '/deployments/{id}/stop', tag: 'Deployments', scope: 'voice:write', sdk: 'deployments.stop', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
37
|
+
{ operationId: 'stopInboundDeployment', method: 'post', path: '/deployments/inbound/{finn_id}/stop', tag: 'Deployments', scope: 'voice:write', sdk: 'deployments.stopInbound', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
38
|
+
{ operationId: 'retrieveWallet', method: 'get', path: '/wallet', tag: 'Wallet', scope: 'voice:read', sdk: 'wallet.retrieve', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
39
|
+
{ operationId: 'listWalletTransactions', method: 'get', path: '/wallet/transactions', tag: 'Wallet', scope: 'voice:read', sdk: 'wallet.listTransactions', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
40
|
+
{ operationId: 'getDeploymentAnalytics', method: 'get', path: '/deployments/{id}/analytics', tag: 'Deployments', scope: 'voice:read', sdk: 'deployments.analytics', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
41
|
+
{ operationId: 'getFinnPostCallAnalysis', method: 'get', path: '/finns/{finn_id}/post_call_analysis', tag: 'Finns', scope: 'voice:read', sdk: 'finns.postCallAnalysis', pathParams: ['finn_id'], generated: false, holdable: false, experimental: false },
|
|
42
|
+
{ operationId: 'listDoNotCall', method: 'get', path: '/do_not_call', tag: 'Do not call', scope: 'voice:read', sdk: 'doNotCall.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
43
|
+
{ operationId: 'addDoNotCall', method: 'post', path: '/do_not_call', tag: 'Do not call', scope: 'voice:write', sdk: 'doNotCall.add', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
44
|
+
{ operationId: 'removeDoNotCall', method: 'delete', path: '/do_not_call/{phone}', tag: 'Do not call', scope: 'voice:dnc:write', sdk: 'doNotCall.remove', pathParams: ['phone'], generated: false, holdable: false, experimental: false },
|
|
45
|
+
{ operationId: 'listRecordKinds', method: 'get', path: '/record_kinds', tag: 'Records', scope: 'crm:read', sdk: 'contacts.listKinds', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
46
|
+
{ operationId: 'listFields', method: 'get', path: '/fields', tag: 'Records', scope: 'crm:read', sdk: 'contacts.listFields', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
47
|
+
{ operationId: 'listRecords', method: 'get', path: '/contacts', tag: 'Records', scope: 'crm:read', sdk: 'contacts.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
48
|
+
{ operationId: 'createRecord', method: 'post', path: '/contacts', tag: 'Records', scope: 'crm:write', sdk: 'contacts.create', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
49
|
+
{ operationId: 'retrieveRecord', method: 'get', path: '/contacts/{id}', tag: 'Records', scope: 'crm:read', sdk: 'contacts.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
50
|
+
{ operationId: 'updateRecord', method: 'patch', path: '/contacts/{id}', tag: 'Records', scope: 'crm:write', sdk: 'contacts.update', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
51
|
+
{ operationId: 'listRecordTimeline', method: 'get', path: '/contacts/{id}/timeline', tag: 'Records', scope: 'crm:read', sdk: 'contacts.timeline', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
52
|
+
{ operationId: 'addRecordNote', method: 'post', path: '/contacts/{id}/notes', tag: 'Records', scope: 'crm:write', sdk: 'contacts.addNote', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
53
|
+
{ operationId: 'listCases', method: 'get', path: '/cases', tag: 'Cases', scope: 'operator:read', sdk: 'cases.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
54
|
+
{ operationId: 'retrieveCase', method: 'get', path: '/cases/{id}', tag: 'Cases', scope: 'operator:read', sdk: 'cases.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
55
|
+
{ operationId: 'listCaseEvents', method: 'get', path: '/cases/{id}/events', tag: 'Cases', scope: 'operator:read', sdk: 'cases.listEvents', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
56
|
+
{ operationId: 'startCase', method: 'post', path: '/agents/{id}/cases', tag: 'Cases', scope: 'operator:write', sdk: 'cases.start', pathParams: ['id'], generated: false, holdable: true, experimental: false },
|
|
57
|
+
{ operationId: 'listApprovals', method: 'get', path: '/approvals', tag: 'Approvals', scope: 'approvals:read', sdk: 'approvals.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
58
|
+
{ operationId: 'retrieveApproval', method: 'get', path: '/approvals/{id}', tag: 'Approvals', scope: 'approvals:read', sdk: 'approvals.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
59
|
+
{ operationId: 'decideApproval', method: 'post', path: '/approvals/{id}/decide', tag: 'Approvals', scope: 'approvals:write', sdk: 'approvals.decide', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
60
|
+
{ operationId: 'approveApproval', method: 'post', path: '/approvals/{id}/approve', tag: 'Approvals', scope: 'approvals:write', sdk: 'approvals.approve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
61
|
+
{ operationId: 'rejectApproval', method: 'post', path: '/approvals/{id}/reject', tag: 'Approvals', scope: 'approvals:write', sdk: 'approvals.reject', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
62
|
+
{ operationId: 'listAgents', method: 'get', path: '/agents', tag: 'Agents', scope: null, sdk: 'agents.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
63
|
+
{ operationId: 'createAgent', method: 'post', path: '/agents', tag: 'Agents', scope: null, sdk: 'agents.create', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
64
|
+
{ operationId: 'draftAgent', method: 'post', path: '/agents/draft', tag: 'Agents', scope: null, sdk: 'agents.draft', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
65
|
+
{ operationId: 'getAgent', method: 'get', path: '/agents/{id}', tag: 'Agents', scope: null, sdk: 'agents.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
66
|
+
{ operationId: 'saveAgentDraft', method: 'put', path: '/agents/{id}/draft', tag: 'Agents', scope: null, sdk: 'agents.saveDraft', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
67
|
+
{ operationId: 'validateAgent', method: 'post', path: '/agents/{id}/validate', tag: 'Agents', scope: null, sdk: 'agents.validate', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
68
|
+
{ operationId: 'testAgent', method: 'post', path: '/agents/{id}/test', tag: 'Agents', scope: null, sdk: 'agents.test', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
69
|
+
{ operationId: 'publishAgent', method: 'post', path: '/agents/{id}/publish', tag: 'Agents', scope: null, sdk: 'agents.publish', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
70
|
+
{ operationId: 'driveAgentTest', method: 'post', path: '/cases/{id}/test/{action}', tag: 'Agents', scope: null, sdk: 'agents.driveTest', pathParams: ['id', 'action'], generated: false, holdable: false, experimental: false },
|
|
71
|
+
{ operationId: 'listChatChannels', method: 'get', path: '/chat/channels', tag: 'Chat', scope: 'chat:read', sdk: 'chat.listChannels', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
72
|
+
{ operationId: 'listChatConversations', method: 'get', path: '/chat/conversations', tag: 'Chat', scope: 'chat:read', sdk: 'chat.conversations.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
73
|
+
{ operationId: 'startChatConversation', method: 'post', path: '/chat/conversations', tag: 'Chat', scope: 'chat:write', sdk: 'chat.conversations.start', pathParams: [], generated: false, holdable: true, experimental: false },
|
|
74
|
+
{ operationId: 'getChatConversation', method: 'get', path: '/chat/conversations/{id}', tag: 'Chat', scope: 'chat:read', sdk: 'chat.conversations.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
75
|
+
{ operationId: 'listChatMessages', method: 'get', path: '/chat/conversations/{id}/messages', tag: 'Chat', scope: 'chat:read', sdk: 'chat.conversations.listMessages', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
76
|
+
{ operationId: 'sendChatMessage', method: 'post', path: '/chat/conversations/{id}/messages', tag: 'Chat', scope: 'chat:write', sdk: 'chat.conversations.send', pathParams: ['id'], generated: false, holdable: true, experimental: false },
|
|
77
|
+
{ operationId: 'listChatContacts', method: 'get', path: '/chat/contacts', tag: 'Chat', scope: 'chat:read', sdk: 'chat.contacts.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
78
|
+
{ operationId: 'getChatContact', method: 'get', path: '/chat/contacts/{id}', tag: 'Chat', scope: 'chat:read', sdk: 'chat.contacts.retrieve', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
79
|
+
{ operationId: 'updateChatContact', method: 'patch', path: '/chat/contacts/{id}', tag: 'Chat', scope: 'chat:write', sdk: 'chat.contacts.update', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
80
|
+
{ operationId: 'listWebhookEndpoints', method: 'get', path: '/webhook_endpoints', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.listEndpoints', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
81
|
+
{ operationId: 'createWebhookEndpoint', method: 'post', path: '/webhook_endpoints', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.createEndpoint', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
82
|
+
{ operationId: 'getWebhookEndpoint', method: 'get', path: '/webhook_endpoints/{id}', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.getEndpoint', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
83
|
+
{ operationId: 'updateWebhookEndpoint', method: 'patch', path: '/webhook_endpoints/{id}', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.updateEndpoint', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
84
|
+
{ operationId: 'deleteWebhookEndpoint', method: 'delete', path: '/webhook_endpoints/{id}', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.deleteEndpoint', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
85
|
+
{ operationId: 'listWebhookDeliveries', method: 'get', path: '/webhook_endpoints/{id}/deliveries', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.listDeliveries', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
86
|
+
{ operationId: 'listEventTypes', method: 'get', path: '/events', tag: 'Webhooks', scope: 'admin:webhooks', sdk: 'webhooks.listEventTypes', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
87
|
+
{ operationId: 'getOrganization', method: 'get', path: '/organization', tag: 'Admin', scope: 'admin:read', sdk: 'organization.get', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
88
|
+
{ operationId: 'listOrganizationMembers', method: 'get', path: '/organization/members', tag: 'Admin', scope: 'admin:read', sdk: 'organization.listMembers', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
89
|
+
{ operationId: 'listOrganizationIntegrations', method: 'get', path: '/organization/integrations', tag: 'Admin', scope: 'admin:read', sdk: 'organization.listIntegrations', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
90
|
+
{ operationId: 'listOrganizationApiKeys', method: 'get', path: '/organization/api_keys', tag: 'Admin', scope: 'admin:read', sdk: 'organization.listApiKeys', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
91
|
+
{ operationId: 'generateFinn', method: 'post', path: '/finns/generate', tag: 'Finns', scope: null, sdk: 'finns.generate', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
92
|
+
{ operationId: 'getFinnFlow', method: 'get', path: '/finns/{finn_id}/flow', tag: 'Finns', scope: null, sdk: 'finns.getFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
93
|
+
{ operationId: 'enableFinnFlow', method: 'post', path: '/finns/{finn_id}/flow/enable', tag: 'Finns', scope: null, sdk: 'finns.enableFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
94
|
+
{ operationId: 'disableFinnFlow', method: 'post', path: '/finns/{finn_id}/flow/disable', tag: 'Finns', scope: null, sdk: 'finns.disableFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
95
|
+
{ operationId: 'getFinnSettings', method: 'get', path: '/finns/{finn_id}/settings', tag: 'Finns', scope: null, sdk: 'finns.getSettings', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
96
|
+
{ operationId: 'getFinnVariables', method: 'get', path: '/finns/{finn_id}/variables', tag: 'Finns', scope: null, sdk: 'finns.getVariables', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
97
|
+
{ operationId: 'updateFinnVariables', method: 'patch', path: '/finns/{finn_id}/variables', tag: 'Finns', scope: null, sdk: 'finns.updateVariables', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
98
|
+
{ operationId: 'updateFinnHandbook', method: 'patch', path: '/finns/{finn_id}/handbook', tag: 'Finns', scope: null, sdk: 'finns.updateHandbook', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
99
|
+
{ operationId: 'updateFinnSpeechSettings', method: 'patch', path: '/finns/{finn_id}/speech_settings', tag: 'Finns', scope: null, sdk: 'finns.updateSpeechSettings', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
100
|
+
{ operationId: 'updateFinnDraft', method: 'patch', path: '/finns/{finn_id}/draft', tag: 'Finns', scope: null, sdk: 'finns.updateDraft', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
101
|
+
{ operationId: 'duplicateFinn', method: 'post', path: '/finns/{finn_id}/duplicate', tag: 'Finns', scope: null, sdk: 'finns.duplicate', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
102
|
+
{ operationId: 'getFinnShareLink', method: 'get', path: '/finns/{finn_id}/share_link', tag: 'Finns', scope: null, sdk: 'finns.getShareLink', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
103
|
+
{ operationId: 'createFinnShareLink', method: 'post', path: '/finns/{finn_id}/share_link', tag: 'Finns', scope: null, sdk: 'finns.createShareLink', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
104
|
+
{ operationId: 'getFinnStats', method: 'get', path: '/finns/{finn_id}/stats', tag: 'Finns', scope: null, sdk: 'finns.getStats', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
105
|
+
{ operationId: 'getFinnOutcomes', method: 'get', path: '/finns/{finn_id}/outcomes', tag: 'Finns', scope: null, sdk: 'finns.getOutcomes', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
106
|
+
{ operationId: 'listSalesPlays', method: 'get', path: '/sales/plays', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listPlays', pathParams: [], generated: true, holdable: false, experimental: true },
|
|
107
|
+
{ operationId: 'listSalesPlayRuns', method: 'get', path: '/sales/plays/{slug}/runs', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listPlayRuns', pathParams: ['slug'], generated: true, holdable: false, experimental: true },
|
|
108
|
+
{ operationId: 'listSalesProspects', method: 'get', path: '/sales/plays/{slug}/prospects', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listProspects', pathParams: ['slug'], generated: true, holdable: false, experimental: true },
|
|
109
|
+
{ operationId: 'runSalesPlay', method: 'post', path: '/sales/plays/{slug}/run', tag: 'Sales', scope: 'sales:write', sdk: 'sales.runPlay', pathParams: ['slug'], generated: true, holdable: false, experimental: true },
|
|
110
|
+
{ operationId: 'listSalesDrafts', method: 'get', path: '/sales/drafts', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listDrafts', pathParams: [], generated: true, holdable: false, experimental: true },
|
|
111
|
+
{ operationId: 'updateSalesDraft', method: 'patch', path: '/sales/drafts/{id}', tag: 'Sales', scope: 'sales:write', sdk: 'sales.updateDraft', pathParams: ['id'], generated: true, holdable: false, experimental: true },
|
|
112
|
+
{ operationId: 'skipSalesDraft', method: 'post', path: '/sales/drafts/{id}/skip', tag: 'Sales', scope: 'sales:write', sdk: 'sales.skipDraft', pathParams: ['id'], generated: true, holdable: false, experimental: true },
|
|
113
|
+
{ operationId: 'listSalesThreads', method: 'get', path: '/sales/threads', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listThreads', pathParams: [], generated: true, holdable: false, experimental: true },
|
|
114
|
+
{ operationId: 'getSalesThread', method: 'get', path: '/sales/threads/{id}', tag: 'Sales', scope: 'sales:read', sdk: 'sales.getThread', pathParams: ['id'], generated: true, holdable: false, experimental: true },
|
|
115
|
+
{ operationId: 'listDialerSessions', method: 'get', path: '/dialer/sessions', tag: 'Dialer', scope: 'dialer:read', sdk: 'dialer.listSessions', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
116
|
+
{ operationId: 'getDialerSession', method: 'get', path: '/dialer/sessions/{id}', tag: 'Dialer', scope: 'dialer:read', sdk: 'dialer.getSession', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
117
|
+
{ operationId: 'getDialerAnalytics', method: 'get', path: '/dialer/analytics', tag: 'Dialer', scope: 'dialer:read', sdk: 'dialer.getAnalytics', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
118
|
+
{ operationId: 'listDialerFollowUps', method: 'get', path: '/dialer/follow-ups', tag: 'Dialer', scope: 'dialer:read', sdk: 'dialer.listFollowUps', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
119
|
+
{ operationId: 'getDialerLeadBrief', method: 'get', path: '/dialer/leads/{id}/brief', tag: 'Dialer', scope: 'dialer:read', sdk: 'dialer.getLeadBrief', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
120
|
+
{ operationId: 'getCrmSetup', method: 'get', path: '/crm/setup', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getSetup', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
121
|
+
{ operationId: 'getCrmFilterSchema', method: 'get', path: '/crm/filter_schema', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getFilterSchema', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
122
|
+
{ operationId: 'searchCrmRecords', method: 'post', path: '/crm/records/search', tag: 'CRM', scope: 'crm:read', sdk: 'crm.searchRecords', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
123
|
+
{ operationId: 'queryCrmRecords', method: 'post', path: '/crm/records/query', tag: 'CRM', scope: 'crm:read', sdk: 'crm.queryRecords', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
124
|
+
{ operationId: 'countCrmRecords', method: 'post', path: '/crm/records/query/count', tag: 'CRM', scope: 'crm:read', sdk: 'crm.countRecords', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
125
|
+
{ operationId: 'countCrmRecordsByStage', method: 'post', path: '/crm/records/query/stage_counts', tag: 'CRM', scope: 'crm:read', sdk: 'crm.countRecordsByStage', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
126
|
+
{ operationId: 'getCrmRecord', method: 'get', path: '/crm/records/{id}', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getRecord', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
127
|
+
{ operationId: 'updateCrmRecord', method: 'patch', path: '/crm/records/{id}', tag: 'CRM', scope: 'crm:write', sdk: 'crm.updateRecord', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
128
|
+
{ operationId: 'getCrmRecordTimeline', method: 'get', path: '/crm/records/{id}/timeline', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getRecordTimeline', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
129
|
+
{ operationId: 'getCrmStageGate', method: 'get', path: '/crm/records/{id}/stage_gate', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getStageGate', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
130
|
+
{ operationId: 'listCrmRecordDocuments', method: 'get', path: '/crm/records/{id}/documents', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listRecordDocuments', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
131
|
+
{ operationId: 'listCrmRecordFiles', method: 'get', path: '/crm/records/{id}/files', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listRecordFiles', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
132
|
+
{ operationId: 'attachCrmFile', method: 'post', path: '/crm/records/{id}/files', tag: 'CRM', scope: 'crm:docs:write', sdk: 'crm.attachFile', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
133
|
+
{ operationId: 'getCrmFormsChecklist', method: 'get', path: '/crm/records/{id}/forms_checklist', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getFormsChecklist', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
134
|
+
{ operationId: 'listCrmFormSubmissions', method: 'get', path: '/crm/records/{id}/submissions', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listFormSubmissions', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
135
|
+
{ operationId: 'listCrmFormDrafts', method: 'get', path: '/crm/records/{id}/form_drafts', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listFormDrafts', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
136
|
+
{ operationId: 'listCrmForms', method: 'get', path: '/crm/forms', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listForms', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
137
|
+
{ operationId: 'listCrmFollowUps', method: 'get', path: '/crm/follow_ups', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listFollowUps', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
138
|
+
{ operationId: 'getCrmFollowUpStats', method: 'get', path: '/crm/follow_ups/stats', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getFollowUpStats', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
139
|
+
{ operationId: 'getCrmMyWork', method: 'get', path: '/crm/my_work', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getMyWork', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
140
|
+
{ operationId: 'listCrmViews', method: 'get', path: '/crm/views', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listViews', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
141
|
+
{ operationId: 'saveCrmView', method: 'post', path: '/crm/views', tag: 'CRM', scope: 'crm:write', sdk: 'crm.saveView', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
142
|
+
{ operationId: 'getCrmSummary', method: 'get', path: '/crm/summary', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getSummary', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
143
|
+
{ operationId: 'getCrmStageCounts', method: 'get', path: '/crm/stage_counts', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getStageCounts', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
144
|
+
{ operationId: 'getCrmSpeed', method: 'get', path: '/crm/speed', tag: 'CRM', scope: 'crm:read', sdk: 'crm.getSpeed', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
145
|
+
{ operationId: 'listCrmDuplicates', method: 'get', path: '/crm/duplicates', tag: 'CRM', scope: 'crm:read', sdk: 'crm.listDuplicates', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
146
|
+
{ operationId: 'askCrm', method: 'post', path: '/crm/ask', tag: 'CRM', scope: 'crm:read', sdk: 'crm.ask', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
147
|
+
{ operationId: 'addCrmNote', method: 'post', path: '/crm/records/{id}/notes', tag: 'CRM', scope: 'crm:write', sdk: 'crm.addNote', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
148
|
+
{ operationId: 'createCrmFollowUp', method: 'post', path: '/crm/records/{id}/follow_ups', tag: 'CRM', scope: 'crm:write', sdk: 'crm.createFollowUp', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
149
|
+
{ operationId: 'updateCrmFollowUp', method: 'patch', path: '/crm/follow_ups/{id}', tag: 'CRM', scope: 'crm:write', sdk: 'crm.updateFollowUp', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
150
|
+
{ operationId: 'createCrmRecord', method: 'post', path: '/crm/records', tag: 'CRM', scope: 'crm:write', sdk: 'crm.createRecord', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
151
|
+
{ operationId: 'setCrmStageCheck', method: 'put', path: '/crm/records/{id}/stage_checks/{stage}/{check}', tag: 'CRM', scope: 'crm:write', sdk: 'crm.setStageCheck', pathParams: ['id', 'stage', 'check'], generated: true, holdable: false, experimental: false },
|
|
152
|
+
{ operationId: 'assignCrmReferenceNo', method: 'post', path: '/crm/records/{id}/ref_no', tag: 'CRM', scope: 'crm:write', sdk: 'crm.assignReferenceNo', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
153
|
+
{ operationId: 'setCrmDocumentStatus', method: 'post', path: '/crm/records/{id}/documents/{type}/status', tag: 'CRM', scope: 'crm:write', sdk: 'crm.setDocumentStatus', pathParams: ['id', 'type'], generated: true, holdable: false, experimental: false },
|
|
154
|
+
{ operationId: 'saveCrmFormDraft', method: 'put', path: '/crm/records/{id}/forms/{form_id}/draft', tag: 'CRM', scope: 'crm:write', sdk: 'crm.saveFormDraft', pathParams: ['id', 'form_id'], generated: true, holdable: false, experimental: false },
|
|
155
|
+
{ operationId: 'draftCrmDocument', method: 'post', path: '/crm/records/{id}/doc_drafts', tag: 'CRM', scope: 'crm:write', sdk: 'crm.draftDocument', pathParams: ['id'], generated: true, holdable: false, experimental: false },
|
|
156
|
+
{ operationId: 'moveCrmRecordStage', method: 'post', path: '/crm/records/{id}/stage_moves', tag: 'CRM', scope: 'crm:stage', sdk: 'crm.moveRecordStage', pathParams: ['id'], generated: true, holdable: true, experimental: false },
|
|
157
|
+
{ operationId: 'submitCrmForm', method: 'post', path: '/crm/records/{id}/forms/{form_id}/submissions', tag: 'CRM', scope: 'crm:stage', sdk: 'crm.submitForm', pathParams: ['id', 'form_id'], generated: true, holdable: true, experimental: false },
|
|
158
|
+
{ operationId: 'createCrmFormLink', method: 'post', path: '/crm/records/{id}/forms/{form_id}/links', tag: 'CRM', scope: 'crm:share', sdk: 'crm.createFormLink', pathParams: ['id', 'form_id'], generated: true, holdable: true, experimental: false },
|
|
159
|
+
{ operationId: 'createCrmUploadLink', method: 'post', path: '/crm/records/{id}/upload_links', tag: 'CRM', scope: 'crm:share', sdk: 'crm.createUploadLink', pathParams: ['id'], generated: true, holdable: true, experimental: false },
|
|
160
|
+
{ operationId: 'guessCrmImportColumns', method: 'post', path: '/crm/imports/columns', tag: 'CRM', scope: 'crm:import', sdk: 'crm.guessImportColumns', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
161
|
+
{ operationId: 'importCrmRecords', method: 'post', path: '/crm/imports', tag: 'CRM', scope: 'crm:import', sdk: 'crm.importRecords', pathParams: [], generated: true, holdable: true, experimental: false },
|
|
162
|
+
];
|