@hirefinn/sdk 0.5.1 → 0.5.2
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 +22 -11
- package/dist/cjs/client.d.ts +16 -6
- package/dist/cjs/client.js +9 -6
- package/dist/cjs/core.d.ts +18 -6
- package/dist/cjs/core.js +23 -7
- package/dist/cjs/errors.d.ts +40 -2
- package/dist/cjs/errors.js +44 -1
- package/dist/cjs/generated/openapi.d.ts +6259 -6222
- package/dist/cjs/generated/operations.d.ts +1 -1
- package/dist/cjs/generated/operations.js +23 -23
- package/dist/cjs/generated/resources.d.ts +47 -47
- package/dist/cjs/generated/resources.js +48 -48
- package/dist/cjs/index.d.ts +7 -7
- package/dist/cjs/index.js +13 -1
- package/dist/cjs/resources.d.ts +25 -17
- package/dist/cjs/resources.js +23 -18
- package/dist/cjs/types.d.ts +2 -2
- package/dist/cjs/webhooks.d.ts +20 -2
- package/dist/cjs/webhooks.js +3 -1
- package/dist/esm/client.d.ts +16 -6
- package/dist/esm/client.js +9 -6
- package/dist/esm/core.d.ts +18 -6
- package/dist/esm/core.js +22 -6
- package/dist/esm/errors.d.ts +40 -2
- package/dist/esm/errors.js +41 -0
- package/dist/esm/generated/openapi.d.ts +6259 -6222
- package/dist/esm/generated/operations.d.ts +1 -1
- package/dist/esm/generated/operations.js +23 -23
- package/dist/esm/generated/resources.d.ts +47 -47
- package/dist/esm/generated/resources.js +46 -46
- package/dist/esm/index.d.ts +7 -7
- package/dist/esm/index.js +4 -4
- package/dist/esm/resources.d.ts +25 -17
- package/dist/esm/resources.js +22 -17
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/webhooks.d.ts +20 -2
- package/dist/esm/webhooks.js +2 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export interface OperationInfo {
|
|
|
11
11
|
tag: string;
|
|
12
12
|
/** `x-required-scope`, when the spec lists one. */
|
|
13
13
|
scope: string | null;
|
|
14
|
-
/** The SDK method, as a property path on the client: '
|
|
14
|
+
/** The SDK method, as a property path on the client: 'assistants.getFlow'. */
|
|
15
15
|
sdk: string;
|
|
16
16
|
pathParams: readonly string[];
|
|
17
17
|
/** False when a hand-written method in src/resources.ts covers it. */
|
|
@@ -11,13 +11,29 @@ exports.OPERATIONS = [
|
|
|
11
11
|
{ operationId: 'listCalls', method: 'get', path: '/calls', tag: 'Calls', scope: 'voice:read', sdk: 'calls.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
12
12
|
{ operationId: 'createCall', method: 'post', path: '/calls', tag: 'Calls', scope: 'voice:write', sdk: 'calls.create', pathParams: [], generated: false, holdable: true, experimental: false },
|
|
13
13
|
{ 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 },
|
|
14
|
-
{ operationId: '
|
|
15
|
-
{ operationId: '
|
|
16
|
-
{ operationId: '
|
|
17
|
-
{ operationId: '
|
|
18
|
-
{ operationId: '
|
|
19
|
-
{ operationId: 'listKnowledgeBase', method: 'get', path: '/
|
|
20
|
-
{ operationId: 'addKnowledgeBaseDocument', method: 'post', path: '/
|
|
14
|
+
{ operationId: 'listAssistants', method: 'get', path: '/assistants', tag: 'Assistants', scope: 'voice:read', sdk: 'assistants.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
15
|
+
{ operationId: 'createAssistant', method: 'post', path: '/assistants', tag: 'Assistants', scope: 'voice:write', sdk: 'assistants.create', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
16
|
+
{ operationId: 'retrieveAssistant', method: 'get', path: '/assistants/{assistant_id}', tag: 'Assistants', scope: 'voice:read', sdk: 'assistants.retrieve', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
17
|
+
{ operationId: 'updateAssistant', method: 'patch', path: '/assistants/{assistant_id}', tag: 'Assistants', scope: 'voice:write', sdk: 'assistants.update', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
18
|
+
{ operationId: 'deleteAssistant', method: 'delete', path: '/assistants/{assistant_id}', tag: 'Assistants', scope: 'voice:write', sdk: 'assistants.delete', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
19
|
+
{ operationId: 'listKnowledgeBase', method: 'get', path: '/assistants/{assistant_id}/knowledge_base', tag: 'Assistants', scope: 'voice:read', sdk: 'assistants.listKnowledgeBase', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
20
|
+
{ operationId: 'addKnowledgeBaseDocument', method: 'post', path: '/assistants/{assistant_id}/knowledge_base', tag: 'Assistants', scope: 'voice:write', sdk: 'assistants.addKnowledgeBaseDocument', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
21
|
+
{ operationId: 'getAssistantPostCallAnalysis', method: 'get', path: '/assistants/{assistant_id}/post_call_analysis', tag: 'Assistants', scope: 'voice:read', sdk: 'assistants.postCallAnalysis', pathParams: ['assistant_id'], generated: false, holdable: false, experimental: false },
|
|
22
|
+
{ operationId: 'generateAssistant', method: 'post', path: '/assistants/generate', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.generate', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
23
|
+
{ operationId: 'getAssistantFlow', method: 'get', path: '/assistants/{assistant_id}/flow', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getFlow', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
24
|
+
{ operationId: 'enableAssistantFlow', method: 'post', path: '/assistants/{assistant_id}/flow/enable', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.enableFlow', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
25
|
+
{ operationId: 'disableAssistantFlow', method: 'post', path: '/assistants/{assistant_id}/flow/disable', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.disableFlow', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
26
|
+
{ operationId: 'getAssistantSettings', method: 'get', path: '/assistants/{assistant_id}/settings', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getSettings', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
27
|
+
{ operationId: 'getAssistantVariables', method: 'get', path: '/assistants/{assistant_id}/variables', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getVariables', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
28
|
+
{ operationId: 'updateAssistantVariables', method: 'patch', path: '/assistants/{assistant_id}/variables', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.updateVariables', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
29
|
+
{ operationId: 'updateAssistantHandbook', method: 'patch', path: '/assistants/{assistant_id}/handbook', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.updateHandbook', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
30
|
+
{ operationId: 'updateAssistantSpeechSettings', method: 'patch', path: '/assistants/{assistant_id}/speech_settings', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.updateSpeechSettings', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
31
|
+
{ operationId: 'updateAssistantDraft', method: 'patch', path: '/assistants/{assistant_id}/draft', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.updateDraft', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
32
|
+
{ operationId: 'duplicateAssistant', method: 'post', path: '/assistants/{assistant_id}/duplicate', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.duplicate', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
33
|
+
{ operationId: 'getAssistantShareLink', method: 'get', path: '/assistants/{assistant_id}/share_link', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getShareLink', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
34
|
+
{ operationId: 'createAssistantShareLink', method: 'post', path: '/assistants/{assistant_id}/share_link', tag: 'Assistants', scope: 'assistants:write', sdk: 'assistants.createShareLink', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
35
|
+
{ operationId: 'getAssistantStats', method: 'get', path: '/assistants/{assistant_id}/stats', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getStats', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
36
|
+
{ operationId: 'getAssistantOutcomes', method: 'get', path: '/assistants/{assistant_id}/outcomes', tag: 'Assistants', scope: 'assistants:read', sdk: 'assistants.getOutcomes', pathParams: ['assistant_id'], generated: true, holdable: false, experimental: false },
|
|
21
37
|
{ operationId: 'listVoices', method: 'get', path: '/voices', tag: 'Voices', scope: 'voice:read', sdk: 'voices.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
22
38
|
{ 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 },
|
|
23
39
|
{ operationId: 'listPhoneNumbers', method: 'get', path: '/phone_numbers', tag: 'Phone numbers', scope: 'voice:read', sdk: 'phoneNumbers.list', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
@@ -41,7 +57,6 @@ exports.OPERATIONS = [
|
|
|
41
57
|
{ operationId: 'retrieveWallet', method: 'get', path: '/wallet', tag: 'Wallet', scope: 'voice:read', sdk: 'wallet.retrieve', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
42
58
|
{ operationId: 'listWalletTransactions', method: 'get', path: '/wallet/transactions', tag: 'Wallet', scope: 'voice:read', sdk: 'wallet.listTransactions', pathParams: [], generated: false, holdable: false, experimental: false },
|
|
43
59
|
{ operationId: 'getDeploymentAnalytics', method: 'get', path: '/deployments/{id}/analytics', tag: 'Deployments', scope: 'voice:read', sdk: 'deployments.analytics', pathParams: ['id'], generated: false, holdable: false, experimental: false },
|
|
44
|
-
{ 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 },
|
|
45
60
|
{ 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 },
|
|
46
61
|
{ 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 },
|
|
47
62
|
{ 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 },
|
|
@@ -93,21 +108,6 @@ exports.OPERATIONS = [
|
|
|
93
108
|
{ operationId: 'listOrganizationIntegrations', method: 'get', path: '/organization/integrations', tag: 'Admin', scope: 'admin:read', sdk: 'organization.listIntegrations', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
94
109
|
{ operationId: 'listOrganizationApiKeys', method: 'get', path: '/organization/api_keys', tag: 'Admin', scope: 'admin:read', sdk: 'organization.listApiKeys', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
95
110
|
{ operationId: 'getUsage', method: 'get', path: '/usage', tag: 'Admin', scope: 'admin:read', sdk: 'organization.getUsage', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
96
|
-
{ operationId: 'generateFinn', method: 'post', path: '/finns/generate', tag: 'Finns', scope: 'finn:write', sdk: 'finns.generate', pathParams: [], generated: true, holdable: false, experimental: false },
|
|
97
|
-
{ operationId: 'getFinnFlow', method: 'get', path: '/finns/{finn_id}/flow', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
98
|
-
{ operationId: 'enableFinnFlow', method: 'post', path: '/finns/{finn_id}/flow/enable', tag: 'Finns', scope: 'finn:write', sdk: 'finns.enableFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
99
|
-
{ operationId: 'disableFinnFlow', method: 'post', path: '/finns/{finn_id}/flow/disable', tag: 'Finns', scope: 'finn:write', sdk: 'finns.disableFlow', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
100
|
-
{ operationId: 'getFinnSettings', method: 'get', path: '/finns/{finn_id}/settings', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getSettings', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
101
|
-
{ operationId: 'getFinnVariables', method: 'get', path: '/finns/{finn_id}/variables', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getVariables', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
102
|
-
{ operationId: 'updateFinnVariables', method: 'patch', path: '/finns/{finn_id}/variables', tag: 'Finns', scope: 'finn:write', sdk: 'finns.updateVariables', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
103
|
-
{ operationId: 'updateFinnHandbook', method: 'patch', path: '/finns/{finn_id}/handbook', tag: 'Finns', scope: 'finn:write', sdk: 'finns.updateHandbook', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
104
|
-
{ operationId: 'updateFinnSpeechSettings', method: 'patch', path: '/finns/{finn_id}/speech_settings', tag: 'Finns', scope: 'finn:write', sdk: 'finns.updateSpeechSettings', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
105
|
-
{ operationId: 'updateFinnDraft', method: 'patch', path: '/finns/{finn_id}/draft', tag: 'Finns', scope: 'finn:write', sdk: 'finns.updateDraft', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
106
|
-
{ operationId: 'duplicateFinn', method: 'post', path: '/finns/{finn_id}/duplicate', tag: 'Finns', scope: 'finn:write', sdk: 'finns.duplicate', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
107
|
-
{ operationId: 'getFinnShareLink', method: 'get', path: '/finns/{finn_id}/share_link', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getShareLink', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
108
|
-
{ operationId: 'createFinnShareLink', method: 'post', path: '/finns/{finn_id}/share_link', tag: 'Finns', scope: 'finn:write', sdk: 'finns.createShareLink', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
109
|
-
{ operationId: 'getFinnStats', method: 'get', path: '/finns/{finn_id}/stats', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getStats', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
110
|
-
{ operationId: 'getFinnOutcomes', method: 'get', path: '/finns/{finn_id}/outcomes', tag: 'Finns', scope: 'finn:read', sdk: 'finns.getOutcomes', pathParams: ['finn_id'], generated: true, holdable: false, experimental: false },
|
|
111
111
|
{ operationId: 'listSalesPlays', method: 'get', path: '/sales/plays', tag: 'Sales', scope: 'sales:read', sdk: 'sales.listPlays', pathParams: [], generated: true, holdable: false, experimental: true },
|
|
112
112
|
{ 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 },
|
|
113
113
|
{ 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 },
|
|
@@ -12,85 +12,85 @@ import type { RequestOptions } from '../types.js';
|
|
|
12
12
|
export declare abstract class CallsGenerated extends Resource {
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Generated methods for the
|
|
15
|
+
* Generated methods for the Assistants tag; `Assistants` in src/resources.ts adds the hand-written ones.
|
|
16
16
|
*/
|
|
17
|
-
export declare abstract class
|
|
17
|
+
export declare abstract class AssistantsGenerated extends Resource {
|
|
18
18
|
/**
|
|
19
19
|
* Draft a Finn with AI.
|
|
20
|
-
* `POST /
|
|
20
|
+
* `POST /assistants/generate`, operationId `generateAssistant`, scope `assistants:write`.
|
|
21
21
|
*/
|
|
22
|
-
generate(body: B<'/
|
|
22
|
+
generate(body: B<'/assistants/generate', 'post'>, options?: RequestOptions): Promise<{
|
|
23
23
|
success: true;
|
|
24
|
-
data: import("./openapi.js").components["schemas"]["
|
|
24
|
+
data: import("./openapi.js").components["schemas"]["Assistant"];
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
27
27
|
* Read a Finn's call flow.
|
|
28
|
-
* `GET /
|
|
28
|
+
* `GET /assistants/{assistant_id}/flow`, operationId `getAssistantFlow`, scope `assistants:read`.
|
|
29
29
|
*/
|
|
30
|
-
getFlow(
|
|
30
|
+
getFlow(assistantId: Id, options?: RequestOptions): Promise<{
|
|
31
31
|
success: true;
|
|
32
|
-
data: import("./openapi.js").components["schemas"]["
|
|
32
|
+
data: import("./openapi.js").components["schemas"]["AssistantFlow"];
|
|
33
33
|
}>;
|
|
34
34
|
/**
|
|
35
35
|
* Turn a Finn's call flow on.
|
|
36
|
-
* `POST /
|
|
36
|
+
* `POST /assistants/{assistant_id}/flow/enable`, operationId `enableAssistantFlow`, scope `assistants:write`.
|
|
37
37
|
*/
|
|
38
|
-
enableFlow(
|
|
38
|
+
enableFlow(assistantId: Id, options?: RequestOptions): Promise<{
|
|
39
39
|
success: true;
|
|
40
|
-
data: import("./openapi.js").components["schemas"]["
|
|
40
|
+
data: import("./openapi.js").components["schemas"]["AssistantFlow"];
|
|
41
41
|
}>;
|
|
42
42
|
/**
|
|
43
43
|
* Turn a Finn's call flow off.
|
|
44
|
-
* `POST /
|
|
44
|
+
* `POST /assistants/{assistant_id}/flow/disable`, operationId `disableAssistantFlow`, scope `assistants:write`.
|
|
45
45
|
*/
|
|
46
|
-
disableFlow(
|
|
46
|
+
disableFlow(assistantId: Id, options?: RequestOptions): Promise<{
|
|
47
47
|
success: true;
|
|
48
|
-
data: import("./openapi.js").components["schemas"]["
|
|
48
|
+
data: import("./openapi.js").components["schemas"]["AssistantFlow"];
|
|
49
49
|
}>;
|
|
50
50
|
/**
|
|
51
51
|
* Read a Finn's settings.
|
|
52
|
-
* `GET /
|
|
52
|
+
* `GET /assistants/{assistant_id}/settings`, operationId `getAssistantSettings`, scope `assistants:read`.
|
|
53
53
|
*/
|
|
54
|
-
getSettings(
|
|
54
|
+
getSettings(assistantId: Id, options?: RequestOptions): Promise<{
|
|
55
55
|
success: true;
|
|
56
|
-
data: import("./openapi.js").components["schemas"]["
|
|
56
|
+
data: import("./openapi.js").components["schemas"]["AssistantSettings"];
|
|
57
57
|
}>;
|
|
58
58
|
/**
|
|
59
59
|
* Read a Finn's variables.
|
|
60
|
-
* `GET /
|
|
60
|
+
* `GET /assistants/{assistant_id}/variables`, operationId `getAssistantVariables`, scope `assistants:read`.
|
|
61
61
|
*/
|
|
62
|
-
getVariables(
|
|
62
|
+
getVariables(assistantId: Id, options?: RequestOptions): Promise<{
|
|
63
63
|
success: true;
|
|
64
|
-
data: import("./openapi.js").components["schemas"]["
|
|
64
|
+
data: import("./openapi.js").components["schemas"]["AssistantVariables"];
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
67
67
|
* Edit a Finn's variables.
|
|
68
|
-
* `PATCH /
|
|
68
|
+
* `PATCH /assistants/{assistant_id}/variables`, operationId `updateAssistantVariables`, scope `assistants:write`.
|
|
69
69
|
*/
|
|
70
|
-
updateVariables(
|
|
70
|
+
updateVariables(assistantId: Id, body: B<'/assistants/{assistant_id}/variables', 'patch'>, options?: RequestOptions): Promise<{
|
|
71
71
|
success: true;
|
|
72
|
-
data: import("./openapi.js").components["schemas"]["
|
|
72
|
+
data: import("./openapi.js").components["schemas"]["AssistantVariables"];
|
|
73
73
|
}>;
|
|
74
74
|
/**
|
|
75
75
|
* Edit a Finn's agent handbook.
|
|
76
|
-
* `PATCH /
|
|
76
|
+
* `PATCH /assistants/{assistant_id}/handbook`, operationId `updateAssistantHandbook`, scope `assistants:write`.
|
|
77
77
|
*/
|
|
78
|
-
updateHandbook(
|
|
78
|
+
updateHandbook(assistantId: Id, body: B<'/assistants/{assistant_id}/handbook', 'patch'>, options?: RequestOptions): Promise<{
|
|
79
79
|
success: true;
|
|
80
80
|
data: {
|
|
81
|
-
finn?: import("./openapi.js").components["schemas"]["
|
|
82
|
-
handbook?: import("./openapi.js").components["schemas"]["
|
|
81
|
+
finn?: import("./openapi.js").components["schemas"]["AssistantSummary"];
|
|
82
|
+
handbook?: import("./openapi.js").components["schemas"]["AssistantHandbook"];
|
|
83
83
|
schema_version?: number;
|
|
84
84
|
};
|
|
85
85
|
}>;
|
|
86
86
|
/**
|
|
87
87
|
* Edit a Finn's speech settings.
|
|
88
|
-
* `PATCH /
|
|
88
|
+
* `PATCH /assistants/{assistant_id}/speech_settings`, operationId `updateAssistantSpeechSettings`, scope `assistants:write`.
|
|
89
89
|
*/
|
|
90
|
-
updateSpeechSettings(
|
|
90
|
+
updateSpeechSettings(assistantId: Id, body: B<'/assistants/{assistant_id}/speech_settings', 'patch'>, options?: RequestOptions): Promise<{
|
|
91
91
|
success: true;
|
|
92
92
|
data: {
|
|
93
|
-
finn?: import("./openapi.js").components["schemas"]["
|
|
93
|
+
finn?: import("./openapi.js").components["schemas"]["AssistantSummary"];
|
|
94
94
|
speech_settings?: {
|
|
95
95
|
[key: string]: unknown;
|
|
96
96
|
} | null;
|
|
@@ -98,44 +98,44 @@ export declare abstract class FinnsGenerated extends Resource {
|
|
|
98
98
|
}>;
|
|
99
99
|
/**
|
|
100
100
|
* Edit a draft Finn.
|
|
101
|
-
* `PATCH /
|
|
101
|
+
* `PATCH /assistants/{assistant_id}/draft`, operationId `updateAssistantDraft`, scope `assistants:write`.
|
|
102
102
|
*/
|
|
103
|
-
updateDraft(
|
|
103
|
+
updateDraft(assistantId: Id, body: B<'/assistants/{assistant_id}/draft', 'patch'>, options?: RequestOptions): Promise<{
|
|
104
104
|
success: true;
|
|
105
|
-
data: import("./openapi.js").components["schemas"]["
|
|
105
|
+
data: import("./openapi.js").components["schemas"]["Assistant"];
|
|
106
106
|
}>;
|
|
107
107
|
/**
|
|
108
108
|
* Copy a Finn.
|
|
109
|
-
* `POST /
|
|
109
|
+
* `POST /assistants/{assistant_id}/duplicate`, operationId `duplicateAssistant`, scope `assistants:write`.
|
|
110
110
|
*/
|
|
111
|
-
duplicate(
|
|
111
|
+
duplicate(assistantId: Id, body: B<'/assistants/{assistant_id}/duplicate', 'post'>, options?: RequestOptions): Promise<{
|
|
112
112
|
success: true;
|
|
113
|
-
data: import("./openapi.js").components["schemas"]["
|
|
113
|
+
data: import("./openapi.js").components["schemas"]["Assistant"];
|
|
114
114
|
}>;
|
|
115
115
|
/**
|
|
116
116
|
* Read a Finn's share link.
|
|
117
|
-
* `GET /
|
|
117
|
+
* `GET /assistants/{assistant_id}/share_link`, operationId `getAssistantShareLink`, scope `assistants:read`.
|
|
118
118
|
*/
|
|
119
|
-
getShareLink(
|
|
119
|
+
getShareLink(assistantId: Id, options?: RequestOptions): Promise<{
|
|
120
120
|
success: true;
|
|
121
|
-
data: import("./openapi.js").components["schemas"]["
|
|
121
|
+
data: import("./openapi.js").components["schemas"]["AssistantShareLink"] | null;
|
|
122
122
|
}>;
|
|
123
123
|
/**
|
|
124
124
|
* Get or make a Finn's share link.
|
|
125
|
-
* `POST /
|
|
125
|
+
* `POST /assistants/{assistant_id}/share_link`, operationId `createAssistantShareLink`, scope `assistants:write`.
|
|
126
126
|
*/
|
|
127
|
-
createShareLink(
|
|
127
|
+
createShareLink(assistantId: Id, options?: RequestOptions): Promise<{
|
|
128
128
|
success: true;
|
|
129
|
-
data: import("./openapi.js").components["schemas"]["
|
|
129
|
+
data: import("./openapi.js").components["schemas"]["AssistantShareLink"];
|
|
130
130
|
} | {
|
|
131
131
|
success: true;
|
|
132
|
-
data: import("./openapi.js").components["schemas"]["
|
|
132
|
+
data: import("./openapi.js").components["schemas"]["AssistantShareLink"];
|
|
133
133
|
}>;
|
|
134
134
|
/**
|
|
135
135
|
* A Finn's call stats.
|
|
136
|
-
* `GET /
|
|
136
|
+
* `GET /assistants/{assistant_id}/stats`, operationId `getAssistantStats`, scope `assistants:read`.
|
|
137
137
|
*/
|
|
138
|
-
getStats(
|
|
138
|
+
getStats(assistantId: Id, query?: Q<'/assistants/{assistant_id}/stats', 'get'>, options?: RequestOptions): Promise<{
|
|
139
139
|
success: true;
|
|
140
140
|
data: {
|
|
141
141
|
[key: string]: unknown;
|
|
@@ -143,9 +143,9 @@ export declare abstract class FinnsGenerated extends Resource {
|
|
|
143
143
|
}>;
|
|
144
144
|
/**
|
|
145
145
|
* Summarize a Finn's call outcomes.
|
|
146
|
-
* `GET /
|
|
146
|
+
* `GET /assistants/{assistant_id}/outcomes`, operationId `getAssistantOutcomes`, scope `assistants:read`.
|
|
147
147
|
*/
|
|
148
|
-
getOutcomes(
|
|
148
|
+
getOutcomes(assistantId: Id, query?: Q<'/assistants/{assistant_id}/outcomes', 'get'>, options?: RequestOptions): Promise<{
|
|
149
149
|
success: true;
|
|
150
150
|
data: {
|
|
151
151
|
[key: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Spec: Finn API v1 (OpenAPI 3.1.0)
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.Sales = exports.Organization = exports.Webhooks = exports.Dialer = exports.Crm = exports.ChatGenerated = exports.AgentsGenerated = exports.ApprovalsGenerated = exports.CasesGenerated = exports.ContactsGenerated = exports.DoNotCallGenerated = exports.WalletGenerated = exports.DeploymentsGenerated = exports.AudiencesGenerated = exports.PhoneNumbersGenerated = exports.VoicesGenerated = exports.
|
|
9
|
+
exports.Sales = exports.Organization = exports.Webhooks = exports.Dialer = exports.Crm = exports.ChatGenerated = exports.AgentsGenerated = exports.ApprovalsGenerated = exports.CasesGenerated = exports.ContactsGenerated = exports.DoNotCallGenerated = exports.WalletGenerated = exports.DeploymentsGenerated = exports.AudiencesGenerated = exports.PhoneNumbersGenerated = exports.VoicesGenerated = exports.AssistantsGenerated = exports.CallsGenerated = void 0;
|
|
10
10
|
const pagination_js_1 = require("../pagination.js");
|
|
11
11
|
const resource_js_1 = require("../resource.js");
|
|
12
12
|
/**
|
|
@@ -16,116 +16,116 @@ class CallsGenerated extends resource_js_1.Resource {
|
|
|
16
16
|
}
|
|
17
17
|
exports.CallsGenerated = CallsGenerated;
|
|
18
18
|
/**
|
|
19
|
-
* Generated methods for the
|
|
19
|
+
* Generated methods for the Assistants tag; `Assistants` in src/resources.ts adds the hand-written ones.
|
|
20
20
|
*/
|
|
21
|
-
class
|
|
21
|
+
class AssistantsGenerated extends resource_js_1.Resource {
|
|
22
22
|
/**
|
|
23
23
|
* Draft a Finn with AI.
|
|
24
|
-
* `POST /
|
|
24
|
+
* `POST /assistants/generate`, operationId `generateAssistant`, scope `assistants:write`.
|
|
25
25
|
*/
|
|
26
26
|
generate(body, options) {
|
|
27
|
-
return this.do('post', '/
|
|
27
|
+
return this.do('post', '/assistants/generate', { body }, options);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Read a Finn's call flow.
|
|
31
|
-
* `GET /
|
|
31
|
+
* `GET /assistants/{assistant_id}/flow`, operationId `getAssistantFlow`, scope `assistants:read`.
|
|
32
32
|
*/
|
|
33
|
-
getFlow(
|
|
34
|
-
return this.do('get', '/
|
|
33
|
+
getFlow(assistantId, options) {
|
|
34
|
+
return this.do('get', '/assistants/{assistant_id}/flow', { path: { assistant_id: assistantId } }, options);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Turn a Finn's call flow on.
|
|
38
|
-
* `POST /
|
|
38
|
+
* `POST /assistants/{assistant_id}/flow/enable`, operationId `enableAssistantFlow`, scope `assistants:write`.
|
|
39
39
|
*/
|
|
40
|
-
enableFlow(
|
|
41
|
-
return this.do('post', '/
|
|
40
|
+
enableFlow(assistantId, options) {
|
|
41
|
+
return this.do('post', '/assistants/{assistant_id}/flow/enable', { path: { assistant_id: assistantId } }, options);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Turn a Finn's call flow off.
|
|
45
|
-
* `POST /
|
|
45
|
+
* `POST /assistants/{assistant_id}/flow/disable`, operationId `disableAssistantFlow`, scope `assistants:write`.
|
|
46
46
|
*/
|
|
47
|
-
disableFlow(
|
|
48
|
-
return this.do('post', '/
|
|
47
|
+
disableFlow(assistantId, options) {
|
|
48
|
+
return this.do('post', '/assistants/{assistant_id}/flow/disable', { path: { assistant_id: assistantId } }, options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Read a Finn's settings.
|
|
52
|
-
* `GET /
|
|
52
|
+
* `GET /assistants/{assistant_id}/settings`, operationId `getAssistantSettings`, scope `assistants:read`.
|
|
53
53
|
*/
|
|
54
|
-
getSettings(
|
|
55
|
-
return this.do('get', '/
|
|
54
|
+
getSettings(assistantId, options) {
|
|
55
|
+
return this.do('get', '/assistants/{assistant_id}/settings', { path: { assistant_id: assistantId } }, options);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Read a Finn's variables.
|
|
59
|
-
* `GET /
|
|
59
|
+
* `GET /assistants/{assistant_id}/variables`, operationId `getAssistantVariables`, scope `assistants:read`.
|
|
60
60
|
*/
|
|
61
|
-
getVariables(
|
|
62
|
-
return this.do('get', '/
|
|
61
|
+
getVariables(assistantId, options) {
|
|
62
|
+
return this.do('get', '/assistants/{assistant_id}/variables', { path: { assistant_id: assistantId } }, options);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Edit a Finn's variables.
|
|
66
|
-
* `PATCH /
|
|
66
|
+
* `PATCH /assistants/{assistant_id}/variables`, operationId `updateAssistantVariables`, scope `assistants:write`.
|
|
67
67
|
*/
|
|
68
|
-
updateVariables(
|
|
69
|
-
return this.do('patch', '/
|
|
68
|
+
updateVariables(assistantId, body, options) {
|
|
69
|
+
return this.do('patch', '/assistants/{assistant_id}/variables', { path: { assistant_id: assistantId }, body }, options);
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Edit a Finn's agent handbook.
|
|
73
|
-
* `PATCH /
|
|
73
|
+
* `PATCH /assistants/{assistant_id}/handbook`, operationId `updateAssistantHandbook`, scope `assistants:write`.
|
|
74
74
|
*/
|
|
75
|
-
updateHandbook(
|
|
76
|
-
return this.do('patch', '/
|
|
75
|
+
updateHandbook(assistantId, body, options) {
|
|
76
|
+
return this.do('patch', '/assistants/{assistant_id}/handbook', { path: { assistant_id: assistantId }, body }, options);
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Edit a Finn's speech settings.
|
|
80
|
-
* `PATCH /
|
|
80
|
+
* `PATCH /assistants/{assistant_id}/speech_settings`, operationId `updateAssistantSpeechSettings`, scope `assistants:write`.
|
|
81
81
|
*/
|
|
82
|
-
updateSpeechSettings(
|
|
83
|
-
return this.do('patch', '/
|
|
82
|
+
updateSpeechSettings(assistantId, body, options) {
|
|
83
|
+
return this.do('patch', '/assistants/{assistant_id}/speech_settings', { path: { assistant_id: assistantId }, body }, options);
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Edit a draft Finn.
|
|
87
|
-
* `PATCH /
|
|
87
|
+
* `PATCH /assistants/{assistant_id}/draft`, operationId `updateAssistantDraft`, scope `assistants:write`.
|
|
88
88
|
*/
|
|
89
|
-
updateDraft(
|
|
90
|
-
return this.do('patch', '/
|
|
89
|
+
updateDraft(assistantId, body, options) {
|
|
90
|
+
return this.do('patch', '/assistants/{assistant_id}/draft', { path: { assistant_id: assistantId }, body }, options);
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* Copy a Finn.
|
|
94
|
-
* `POST /
|
|
94
|
+
* `POST /assistants/{assistant_id}/duplicate`, operationId `duplicateAssistant`, scope `assistants:write`.
|
|
95
95
|
*/
|
|
96
|
-
duplicate(
|
|
97
|
-
return this.do('post', '/
|
|
96
|
+
duplicate(assistantId, body, options) {
|
|
97
|
+
return this.do('post', '/assistants/{assistant_id}/duplicate', { path: { assistant_id: assistantId }, body }, options);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Read a Finn's share link.
|
|
101
|
-
* `GET /
|
|
101
|
+
* `GET /assistants/{assistant_id}/share_link`, operationId `getAssistantShareLink`, scope `assistants:read`.
|
|
102
102
|
*/
|
|
103
|
-
getShareLink(
|
|
104
|
-
return this.do('get', '/
|
|
103
|
+
getShareLink(assistantId, options) {
|
|
104
|
+
return this.do('get', '/assistants/{assistant_id}/share_link', { path: { assistant_id: assistantId } }, options);
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Get or make a Finn's share link.
|
|
108
|
-
* `POST /
|
|
108
|
+
* `POST /assistants/{assistant_id}/share_link`, operationId `createAssistantShareLink`, scope `assistants:write`.
|
|
109
109
|
*/
|
|
110
|
-
createShareLink(
|
|
111
|
-
return this.do('post', '/
|
|
110
|
+
createShareLink(assistantId, options) {
|
|
111
|
+
return this.do('post', '/assistants/{assistant_id}/share_link', { path: { assistant_id: assistantId } }, options);
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* A Finn's call stats.
|
|
115
|
-
* `GET /
|
|
115
|
+
* `GET /assistants/{assistant_id}/stats`, operationId `getAssistantStats`, scope `assistants:read`.
|
|
116
116
|
*/
|
|
117
|
-
getStats(
|
|
118
|
-
return this.do('get', '/
|
|
117
|
+
getStats(assistantId, query, options) {
|
|
118
|
+
return this.do('get', '/assistants/{assistant_id}/stats', { path: { assistant_id: assistantId }, query }, options);
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
121
|
* Summarize a Finn's call outcomes.
|
|
122
|
-
* `GET /
|
|
122
|
+
* `GET /assistants/{assistant_id}/outcomes`, operationId `getAssistantOutcomes`, scope `assistants:read`.
|
|
123
123
|
*/
|
|
124
|
-
getOutcomes(
|
|
125
|
-
return this.do('get', '/
|
|
124
|
+
getOutcomes(assistantId, query, options) {
|
|
125
|
+
return this.do('get', '/assistants/{assistant_id}/outcomes', { path: { assistant_id: assistantId }, query }, options);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
exports.
|
|
128
|
+
exports.AssistantsGenerated = AssistantsGenerated;
|
|
129
129
|
/**
|
|
130
130
|
* Generated methods for the Voices tag; `Voices` in src/resources.ts adds the hand-written ones.
|
|
131
131
|
*/
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Finn } from './client.js';
|
|
1
|
+
export { Finn, Client } from './client.js';
|
|
2
2
|
export { Finn as default } from './client.js';
|
|
3
|
-
export { FinnCore, DEFAULT_BASE_URL, SDK_VERSION, DEFAULT_FINN_VERSION, AUTO_IDEMPOTENCY_ROUTES, IDEMPOTENT_WRITE_ROUTES, honoursIdempotencyKey, idempotencyKey, DEFAULT_MAX_RETRY_WAIT_MS, } from './core.js';
|
|
4
|
-
export { verifyWebhook, signWebhookPayload, parseSignatureHeader, timingSafeEqual, FinnWebhookVerificationError, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_HEADERS, LEGACY_WEBHOOK_HEADERS, readWebhookHeader, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, } from './webhooks.js';
|
|
5
|
-
export type { VerifyWebhookOptions, WebhookEvent, WebhookHeaderKind } from './webhooks.js';
|
|
6
|
-
export type { FinnOptions, RawRequest } from './core.js';
|
|
7
|
-
export { FinnSdkError, FinnError, FinnConnectionError, FinnTimeoutError, FinnApprovalTimeoutError, codeForStatus, parseRetryAfterSeconds, } from './errors.js';
|
|
8
|
-
export type { FinnErrorCode, FinnFieldError } from './errors.js';
|
|
3
|
+
export { FinnCore, DEFAULT_BASE_URL, SDK_VERSION, DEFAULT_FINN_VERSION, DEFAULT_API_VERSION, RENAMED_REQUEST_HEADERS, AUTO_IDEMPOTENCY_ROUTES, IDEMPOTENT_WRITE_ROUTES, honoursIdempotencyKey, idempotencyKey, DEFAULT_MAX_RETRY_WAIT_MS, } from './core.js';
|
|
4
|
+
export { verifyWebhook, signWebhookPayload, parseSignatureHeader, timingSafeEqual, FinnWebhookVerificationError, WebhookVerificationError, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_HEADERS, LEGACY_WEBHOOK_HEADERS, readWebhookHeader, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, } from './webhooks.js';
|
|
5
|
+
export type { VerifyWebhookOptions, WebhookAgentFields, WebhookEvent, WebhookHeaderKind } from './webhooks.js';
|
|
6
|
+
export type { FinnOptions, FinnOptions as ClientOptions, RawRequest } from './core.js';
|
|
7
|
+
export { FinnSdkError, FinnError, FinnConnectionError, FinnTimeoutError, FinnApprovalTimeoutError, SdkError, ApiError, ApiConnectionError, ApiTimeoutError, ApprovalTimeoutError, RENAMED_ERROR_CODES, neutralErrorCode, legacyErrorCode, codeForStatus, parseRetryAfterSeconds, } from './errors.js';
|
|
8
|
+
export type { FinnErrorCode, FinnFieldError, ErrorCode, FieldError } from './errors.js';
|
|
9
9
|
export { isPendingApproval } from './approval.js';
|
|
10
10
|
export { Paginator, cursorStrategy, offsetStrategy, pageStrategy, beforeStrategy, afterStrategy } from './pagination.js';
|
|
11
11
|
export type { PageStrategy } from './pagination.js';
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.afterStrategy = exports.beforeStrategy = exports.pageStrategy = exports.offsetStrategy = exports.cursorStrategy = exports.Paginator = exports.isPendingApproval = exports.parseRetryAfterSeconds = exports.codeForStatus = exports.FinnApprovalTimeoutError = exports.FinnTimeoutError = exports.FinnConnectionError = exports.FinnError = exports.FinnSdkError = exports.DEFAULT_WEBHOOK_TOLERANCE_SECONDS = exports.readWebhookHeader = exports.LEGACY_WEBHOOK_HEADERS = exports.WEBHOOK_HEADERS = exports.WEBHOOK_EVENT_HEADER = exports.WEBHOOK_SIGNATURE_HEADER = exports.FinnWebhookVerificationError = exports.timingSafeEqual = exports.parseSignatureHeader = exports.signWebhookPayload = exports.verifyWebhook = exports.DEFAULT_MAX_RETRY_WAIT_MS = exports.idempotencyKey = exports.honoursIdempotencyKey = exports.IDEMPOTENT_WRITE_ROUTES = exports.AUTO_IDEMPOTENCY_ROUTES = exports.DEFAULT_FINN_VERSION = exports.SDK_VERSION = exports.DEFAULT_BASE_URL = exports.FinnCore = exports.default = exports.Finn = void 0;
|
|
17
|
+
exports.afterStrategy = exports.beforeStrategy = exports.pageStrategy = exports.offsetStrategy = exports.cursorStrategy = exports.Paginator = exports.isPendingApproval = exports.parseRetryAfterSeconds = exports.codeForStatus = exports.legacyErrorCode = exports.neutralErrorCode = exports.RENAMED_ERROR_CODES = exports.ApprovalTimeoutError = exports.ApiTimeoutError = exports.ApiConnectionError = exports.ApiError = exports.SdkError = exports.FinnApprovalTimeoutError = exports.FinnTimeoutError = exports.FinnConnectionError = exports.FinnError = exports.FinnSdkError = exports.DEFAULT_WEBHOOK_TOLERANCE_SECONDS = exports.readWebhookHeader = exports.LEGACY_WEBHOOK_HEADERS = exports.WEBHOOK_HEADERS = exports.WEBHOOK_EVENT_HEADER = exports.WEBHOOK_SIGNATURE_HEADER = exports.WebhookVerificationError = exports.FinnWebhookVerificationError = exports.timingSafeEqual = exports.parseSignatureHeader = exports.signWebhookPayload = exports.verifyWebhook = exports.DEFAULT_MAX_RETRY_WAIT_MS = exports.idempotencyKey = exports.honoursIdempotencyKey = exports.IDEMPOTENT_WRITE_ROUTES = exports.AUTO_IDEMPOTENCY_ROUTES = exports.RENAMED_REQUEST_HEADERS = exports.DEFAULT_API_VERSION = exports.DEFAULT_FINN_VERSION = exports.SDK_VERSION = exports.DEFAULT_BASE_URL = exports.FinnCore = exports.default = exports.Client = exports.Finn = void 0;
|
|
18
18
|
var client_js_1 = require("./client.js");
|
|
19
19
|
Object.defineProperty(exports, "Finn", { enumerable: true, get: function () { return client_js_1.Finn; } });
|
|
20
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_js_1.Client; } });
|
|
20
21
|
var client_js_2 = require("./client.js");
|
|
21
22
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_js_2.Finn; } });
|
|
22
23
|
var core_js_1 = require("./core.js");
|
|
@@ -24,6 +25,8 @@ Object.defineProperty(exports, "FinnCore", { enumerable: true, get: function ()
|
|
|
24
25
|
Object.defineProperty(exports, "DEFAULT_BASE_URL", { enumerable: true, get: function () { return core_js_1.DEFAULT_BASE_URL; } });
|
|
25
26
|
Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return core_js_1.SDK_VERSION; } });
|
|
26
27
|
Object.defineProperty(exports, "DEFAULT_FINN_VERSION", { enumerable: true, get: function () { return core_js_1.DEFAULT_FINN_VERSION; } });
|
|
28
|
+
Object.defineProperty(exports, "DEFAULT_API_VERSION", { enumerable: true, get: function () { return core_js_1.DEFAULT_API_VERSION; } });
|
|
29
|
+
Object.defineProperty(exports, "RENAMED_REQUEST_HEADERS", { enumerable: true, get: function () { return core_js_1.RENAMED_REQUEST_HEADERS; } });
|
|
27
30
|
Object.defineProperty(exports, "AUTO_IDEMPOTENCY_ROUTES", { enumerable: true, get: function () { return core_js_1.AUTO_IDEMPOTENCY_ROUTES; } });
|
|
28
31
|
Object.defineProperty(exports, "IDEMPOTENT_WRITE_ROUTES", { enumerable: true, get: function () { return core_js_1.IDEMPOTENT_WRITE_ROUTES; } });
|
|
29
32
|
Object.defineProperty(exports, "honoursIdempotencyKey", { enumerable: true, get: function () { return core_js_1.honoursIdempotencyKey; } });
|
|
@@ -35,6 +38,7 @@ Object.defineProperty(exports, "signWebhookPayload", { enumerable: true, get: fu
|
|
|
35
38
|
Object.defineProperty(exports, "parseSignatureHeader", { enumerable: true, get: function () { return webhooks_js_1.parseSignatureHeader; } });
|
|
36
39
|
Object.defineProperty(exports, "timingSafeEqual", { enumerable: true, get: function () { return webhooks_js_1.timingSafeEqual; } });
|
|
37
40
|
Object.defineProperty(exports, "FinnWebhookVerificationError", { enumerable: true, get: function () { return webhooks_js_1.FinnWebhookVerificationError; } });
|
|
41
|
+
Object.defineProperty(exports, "WebhookVerificationError", { enumerable: true, get: function () { return webhooks_js_1.WebhookVerificationError; } });
|
|
38
42
|
Object.defineProperty(exports, "WEBHOOK_SIGNATURE_HEADER", { enumerable: true, get: function () { return webhooks_js_1.WEBHOOK_SIGNATURE_HEADER; } });
|
|
39
43
|
Object.defineProperty(exports, "WEBHOOK_EVENT_HEADER", { enumerable: true, get: function () { return webhooks_js_1.WEBHOOK_EVENT_HEADER; } });
|
|
40
44
|
Object.defineProperty(exports, "WEBHOOK_HEADERS", { enumerable: true, get: function () { return webhooks_js_1.WEBHOOK_HEADERS; } });
|
|
@@ -47,6 +51,14 @@ Object.defineProperty(exports, "FinnError", { enumerable: true, get: function ()
|
|
|
47
51
|
Object.defineProperty(exports, "FinnConnectionError", { enumerable: true, get: function () { return errors_js_1.FinnConnectionError; } });
|
|
48
52
|
Object.defineProperty(exports, "FinnTimeoutError", { enumerable: true, get: function () { return errors_js_1.FinnTimeoutError; } });
|
|
49
53
|
Object.defineProperty(exports, "FinnApprovalTimeoutError", { enumerable: true, get: function () { return errors_js_1.FinnApprovalTimeoutError; } });
|
|
54
|
+
Object.defineProperty(exports, "SdkError", { enumerable: true, get: function () { return errors_js_1.SdkError; } });
|
|
55
|
+
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return errors_js_1.ApiError; } });
|
|
56
|
+
Object.defineProperty(exports, "ApiConnectionError", { enumerable: true, get: function () { return errors_js_1.ApiConnectionError; } });
|
|
57
|
+
Object.defineProperty(exports, "ApiTimeoutError", { enumerable: true, get: function () { return errors_js_1.ApiTimeoutError; } });
|
|
58
|
+
Object.defineProperty(exports, "ApprovalTimeoutError", { enumerable: true, get: function () { return errors_js_1.ApprovalTimeoutError; } });
|
|
59
|
+
Object.defineProperty(exports, "RENAMED_ERROR_CODES", { enumerable: true, get: function () { return errors_js_1.RENAMED_ERROR_CODES; } });
|
|
60
|
+
Object.defineProperty(exports, "neutralErrorCode", { enumerable: true, get: function () { return errors_js_1.neutralErrorCode; } });
|
|
61
|
+
Object.defineProperty(exports, "legacyErrorCode", { enumerable: true, get: function () { return errors_js_1.legacyErrorCode; } });
|
|
50
62
|
Object.defineProperty(exports, "codeForStatus", { enumerable: true, get: function () { return errors_js_1.codeForStatus; } });
|
|
51
63
|
Object.defineProperty(exports, "parseRetryAfterSeconds", { enumerable: true, get: function () { return errors_js_1.parseRetryAfterSeconds; } });
|
|
52
64
|
var approval_js_1 = require("./approval.js");
|