@domu-ai/kiban-sdk 1.90.0 → 1.92.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/package.json +1 -1
- package/public/client.d.ts +98 -0
- package/public/client.js +17 -1
- package/public/schemas.d.ts +30 -2
- package/public/schemas.js +15 -1
package/package.json
CHANGED
package/public/client.d.ts
CHANGED
|
@@ -32,6 +32,64 @@ export type PublicAuthMeGet401 = {
|
|
|
32
32
|
code?: string;
|
|
33
33
|
details?: unknown | null;
|
|
34
34
|
};
|
|
35
|
+
export type PublicCallsPostBodyInputFields = {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
export type PublicCallsPostBody = {
|
|
39
|
+
/** @minLength 1 */
|
|
40
|
+
campaignId: string;
|
|
41
|
+
/** @minLength 1 */
|
|
42
|
+
phoneNumber: string;
|
|
43
|
+
/** @maxLength 100 */
|
|
44
|
+
firstName?: string;
|
|
45
|
+
/** @maxLength 100 */
|
|
46
|
+
lastName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @minLength 1
|
|
49
|
+
* @maxLength 128
|
|
50
|
+
*/
|
|
51
|
+
externalId: string;
|
|
52
|
+
inputFields?: PublicCallsPostBodyInputFields;
|
|
53
|
+
};
|
|
54
|
+
export type PublicCallsPost202Status = typeof PublicCallsPost202Status[keyof typeof PublicCallsPost202Status];
|
|
55
|
+
export declare const PublicCallsPost202Status: {
|
|
56
|
+
readonly queued: "queued";
|
|
57
|
+
};
|
|
58
|
+
export type PublicCallsPost202 = {
|
|
59
|
+
call_id: string;
|
|
60
|
+
status: PublicCallsPost202Status;
|
|
61
|
+
created_at: string;
|
|
62
|
+
};
|
|
63
|
+
export type PublicCallsPost400 = {
|
|
64
|
+
message: string;
|
|
65
|
+
code?: string;
|
|
66
|
+
details?: unknown | null;
|
|
67
|
+
};
|
|
68
|
+
export type PublicCallsPost401 = {
|
|
69
|
+
message: string;
|
|
70
|
+
code?: string;
|
|
71
|
+
details?: unknown | null;
|
|
72
|
+
};
|
|
73
|
+
export type PublicCallsPost403 = {
|
|
74
|
+
message: string;
|
|
75
|
+
code?: string;
|
|
76
|
+
details?: unknown | null;
|
|
77
|
+
};
|
|
78
|
+
export type PublicCallsPost404 = {
|
|
79
|
+
message: string;
|
|
80
|
+
code?: string;
|
|
81
|
+
details?: unknown | null;
|
|
82
|
+
};
|
|
83
|
+
export type PublicCallsPost429 = {
|
|
84
|
+
message: string;
|
|
85
|
+
code?: string;
|
|
86
|
+
details?: unknown | null;
|
|
87
|
+
};
|
|
88
|
+
export type PublicCallsPost500 = {
|
|
89
|
+
message: string;
|
|
90
|
+
code?: string;
|
|
91
|
+
details?: unknown | null;
|
|
92
|
+
};
|
|
35
93
|
export type PublicClientsNubankInteractionsStartPostBody = {
|
|
36
94
|
/** @minLength 1 */
|
|
37
95
|
customerId: string;
|
|
@@ -583,6 +641,46 @@ export type publicAuthMeGetResponseError = (publicAuthMeGetResponse401) & {
|
|
|
583
641
|
export type publicAuthMeGetResponse = (publicAuthMeGetResponseSuccess | publicAuthMeGetResponseError);
|
|
584
642
|
export declare const getPublicAuthMeGetUrl: () => string;
|
|
585
643
|
export declare const publicAuthMeGet: (options?: RequestInit) => Promise<publicAuthMeGetResponse>;
|
|
644
|
+
/**
|
|
645
|
+
* @summary Create an outbound call
|
|
646
|
+
*/
|
|
647
|
+
export type publicCallsPostResponse202 = {
|
|
648
|
+
data: PublicCallsPost202;
|
|
649
|
+
status: 202;
|
|
650
|
+
};
|
|
651
|
+
export type publicCallsPostResponse400 = {
|
|
652
|
+
data: PublicCallsPost400;
|
|
653
|
+
status: 400;
|
|
654
|
+
};
|
|
655
|
+
export type publicCallsPostResponse401 = {
|
|
656
|
+
data: PublicCallsPost401;
|
|
657
|
+
status: 401;
|
|
658
|
+
};
|
|
659
|
+
export type publicCallsPostResponse403 = {
|
|
660
|
+
data: PublicCallsPost403;
|
|
661
|
+
status: 403;
|
|
662
|
+
};
|
|
663
|
+
export type publicCallsPostResponse404 = {
|
|
664
|
+
data: PublicCallsPost404;
|
|
665
|
+
status: 404;
|
|
666
|
+
};
|
|
667
|
+
export type publicCallsPostResponse429 = {
|
|
668
|
+
data: PublicCallsPost429;
|
|
669
|
+
status: 429;
|
|
670
|
+
};
|
|
671
|
+
export type publicCallsPostResponse500 = {
|
|
672
|
+
data: PublicCallsPost500;
|
|
673
|
+
status: 500;
|
|
674
|
+
};
|
|
675
|
+
export type publicCallsPostResponseSuccess = (publicCallsPostResponse202) & {
|
|
676
|
+
headers: Headers;
|
|
677
|
+
};
|
|
678
|
+
export type publicCallsPostResponseError = (publicCallsPostResponse400 | publicCallsPostResponse401 | publicCallsPostResponse403 | publicCallsPostResponse404 | publicCallsPostResponse429 | publicCallsPostResponse500) & {
|
|
679
|
+
headers: Headers;
|
|
680
|
+
};
|
|
681
|
+
export type publicCallsPostResponse = (publicCallsPostResponseSuccess | publicCallsPostResponseError);
|
|
682
|
+
export declare const getPublicCallsPostUrl: () => string;
|
|
683
|
+
export declare const publicCallsPost: (publicCallsPostBody: PublicCallsPostBody, options?: RequestInit) => Promise<publicCallsPostResponse>;
|
|
586
684
|
/**
|
|
587
685
|
* Initiates an interaction session with Nubank for a customer. Returns a sourceId that must be used to end the interaction.
|
|
588
686
|
* @summary Start a Nubank customer interaction
|
package/public/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.publicPaymentsConnectorsSwervepayPost = exports.getPublicPaymentsConnectorsSwervepayPostUrl = exports.publicPaymentsConnectorsSpeedpayPost = exports.getPublicPaymentsConnectorsSpeedpayPostUrl = exports.publicPaymentsConnectorsRepayPost = exports.getPublicPaymentsConnectorsRepayPostUrl = exports.publicPaymentsConnectorsPayrazrPost = exports.getPublicPaymentsConnectorsPayrazrPostUrl = exports.publicPaymentsConnectorsPaynearmePost = exports.getPublicPaymentsConnectorsPaynearmePostUrl = exports.publicPaymentsConnectorsPayliancePost = exports.getPublicPaymentsConnectorsPayliancePostUrl = exports.publicPaymentsConnectorsMonerisPost = exports.getPublicPaymentsConnectorsMonerisPostUrl = exports.publicContactsIdPut = exports.getPublicContactsIdPutUrl = exports.publicContactsIdGet = exports.getPublicContactsIdGetUrl = exports.publicClientsAloricaNotesPost = exports.getPublicClientsAloricaNotesPostUrl = exports.publicClientsNubankDebtsCustomerIdGet = exports.getPublicClientsNubankDebtsCustomerIdGetUrl = exports.publicClientsNubankInteractionsEndPost = exports.getPublicClientsNubankInteractionsEndPostUrl = exports.publicClientsNubankInteractionsStartPost = exports.getPublicClientsNubankInteractionsStartPostUrl = exports.publicAuthMeGet = exports.getPublicAuthMeGetUrl = exports.publicHealthGet = exports.getPublicHealthGetUrl = exports.PublicClientsAloricaNotesPost200ReturnMessage = exports.PublicClientsAloricaNotesPostBodyResult = exports.PublicHealthGet200Status = void 0;
|
|
3
|
+
exports.publicPaymentsConnectorsSwervepayPost = exports.getPublicPaymentsConnectorsSwervepayPostUrl = exports.publicPaymentsConnectorsSpeedpayPost = exports.getPublicPaymentsConnectorsSpeedpayPostUrl = exports.publicPaymentsConnectorsRepayPost = exports.getPublicPaymentsConnectorsRepayPostUrl = exports.publicPaymentsConnectorsPayrazrPost = exports.getPublicPaymentsConnectorsPayrazrPostUrl = exports.publicPaymentsConnectorsPaynearmePost = exports.getPublicPaymentsConnectorsPaynearmePostUrl = exports.publicPaymentsConnectorsPayliancePost = exports.getPublicPaymentsConnectorsPayliancePostUrl = exports.publicPaymentsConnectorsMonerisPost = exports.getPublicPaymentsConnectorsMonerisPostUrl = exports.publicContactsIdPut = exports.getPublicContactsIdPutUrl = exports.publicContactsIdGet = exports.getPublicContactsIdGetUrl = exports.publicClientsAloricaNotesPost = exports.getPublicClientsAloricaNotesPostUrl = exports.publicClientsNubankDebtsCustomerIdGet = exports.getPublicClientsNubankDebtsCustomerIdGetUrl = exports.publicClientsNubankInteractionsEndPost = exports.getPublicClientsNubankInteractionsEndPostUrl = exports.publicClientsNubankInteractionsStartPost = exports.getPublicClientsNubankInteractionsStartPostUrl = exports.publicCallsPost = exports.getPublicCallsPostUrl = exports.publicAuthMeGet = exports.getPublicAuthMeGetUrl = exports.publicHealthGet = exports.getPublicHealthGetUrl = exports.PublicClientsAloricaNotesPost200ReturnMessage = exports.PublicClientsAloricaNotesPostBodyResult = exports.PublicCallsPost202Status = exports.PublicHealthGet200Status = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Generated by orval v8.2.0 🍺
|
|
6
6
|
* Do not edit manually.
|
|
@@ -12,6 +12,9 @@ const fetcher_1 = require("../shared/fetcher");
|
|
|
12
12
|
exports.PublicHealthGet200Status = {
|
|
13
13
|
ok: 'ok',
|
|
14
14
|
};
|
|
15
|
+
exports.PublicCallsPost202Status = {
|
|
16
|
+
queued: 'queued',
|
|
17
|
+
};
|
|
15
18
|
exports.PublicClientsAloricaNotesPostBodyResult = {
|
|
16
19
|
PAYMENT: 'PAYMENT',
|
|
17
20
|
PROMISE: 'PROMISE',
|
|
@@ -49,6 +52,19 @@ const publicAuthMeGet = async (options) => {
|
|
|
49
52
|
});
|
|
50
53
|
};
|
|
51
54
|
exports.publicAuthMeGet = publicAuthMeGet;
|
|
55
|
+
const getPublicCallsPostUrl = () => {
|
|
56
|
+
return `/v1/calls/`;
|
|
57
|
+
};
|
|
58
|
+
exports.getPublicCallsPostUrl = getPublicCallsPostUrl;
|
|
59
|
+
const publicCallsPost = async (publicCallsPostBody, options) => {
|
|
60
|
+
return (0, fetcher_1.customFetcher)((0, exports.getPublicCallsPostUrl)(), {
|
|
61
|
+
...options,
|
|
62
|
+
method: 'POST',
|
|
63
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
64
|
+
body: JSON.stringify(publicCallsPostBody)
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
exports.publicCallsPost = publicCallsPost;
|
|
52
68
|
const getPublicClientsNubankInteractionsStartPostUrl = () => {
|
|
53
69
|
return `/v1/clients/nubank/interactions/start`;
|
|
54
70
|
};
|
package/public/schemas.d.ts
CHANGED
|
@@ -40,6 +40,34 @@ export declare const MeResponse: zod.ZodObject<{
|
|
|
40
40
|
orgId: string | null;
|
|
41
41
|
orgRole: string | null;
|
|
42
42
|
}>;
|
|
43
|
+
/**
|
|
44
|
+
* @summary Create an outbound call
|
|
45
|
+
*/
|
|
46
|
+
export declare const createCallBodyFirstNameMax = 100;
|
|
47
|
+
export declare const createCallBodyLastNameMax = 100;
|
|
48
|
+
export declare const createCallBodyExternalIdMax = 128;
|
|
49
|
+
export declare const CreateCallBody: zod.ZodObject<{
|
|
50
|
+
campaignId: zod.ZodString;
|
|
51
|
+
phoneNumber: zod.ZodString;
|
|
52
|
+
firstName: zod.ZodOptional<zod.ZodString>;
|
|
53
|
+
lastName: zod.ZodOptional<zod.ZodString>;
|
|
54
|
+
externalId: zod.ZodString;
|
|
55
|
+
inputFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
56
|
+
}, "strip", zod.ZodTypeAny, {
|
|
57
|
+
campaignId: string;
|
|
58
|
+
phoneNumber: string;
|
|
59
|
+
externalId: string;
|
|
60
|
+
firstName?: string | undefined;
|
|
61
|
+
lastName?: string | undefined;
|
|
62
|
+
inputFields?: Record<string, unknown> | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
campaignId: string;
|
|
65
|
+
phoneNumber: string;
|
|
66
|
+
externalId: string;
|
|
67
|
+
firstName?: string | undefined;
|
|
68
|
+
lastName?: string | undefined;
|
|
69
|
+
inputFields?: Record<string, unknown> | undefined;
|
|
70
|
+
}>;
|
|
43
71
|
/**
|
|
44
72
|
* Initiates an interaction session with Nubank for a customer. Returns a sourceId that must be used to end the interaction.
|
|
45
73
|
* @summary Start a Nubank customer interaction
|
|
@@ -52,11 +80,11 @@ export declare const StartBody: zod.ZodObject<{
|
|
|
52
80
|
type: zod.ZodDefault<zod.ZodString>;
|
|
53
81
|
}, "strip", zod.ZodTypeAny, {
|
|
54
82
|
type: string;
|
|
55
|
-
customerId: string;
|
|
56
83
|
phoneNumber: string;
|
|
57
|
-
}, {
|
|
58
84
|
customerId: string;
|
|
85
|
+
}, {
|
|
59
86
|
phoneNumber: string;
|
|
87
|
+
customerId: string;
|
|
60
88
|
type?: string | undefined;
|
|
61
89
|
}>;
|
|
62
90
|
/**
|
package/public/schemas.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ProcessSwervePayPaymentResponse = exports.ProcessSwervePayPaymentBody = exports.ProcessSpeedPayPaymentResponse = exports.ProcessSpeedPayPaymentBody = exports.ProcessRepayPaymentResponse = exports.ProcessRepayPaymentBody = exports.ProcessPayrazrPaymentResponse = exports.ProcessPayrazrPaymentBody = exports.ProcessPNMPaymentResponse = exports.ProcessPNMPaymentBody = exports.ProcessPayliancePaymentResponse = exports.ProcessPayliancePaymentBody = exports.ProcessMonerisPaymentResponse = exports.ProcessMonerisPaymentBody = exports.UpdateContactResponse = exports.UpdateContactBody = exports.UpdateContactQueryParams = exports.UpdateContactParams = exports.GetContactResponse = exports.GetContactQueryParams = exports.GetContactParams = exports.CreateAloricaNoteResponse = exports.CreateAloricaNoteBody = exports.CreateAloricaNoteQueryParams = exports.GetDebtsResponse = exports.GetDebtsQueryParams = exports.getDebtsQueryIncludeOffersDefault = exports.GetDebtsParams = exports.EndResponse = exports.EndBody = exports.StartBody = exports.startBodyTypeDefault = exports.startBodyPhoneNumberRegExp = exports.MeResponse = exports.CheckResponse = void 0;
|
|
36
|
+
exports.ProcessSwervePayPaymentResponse = exports.ProcessSwervePayPaymentBody = exports.ProcessSpeedPayPaymentResponse = exports.ProcessSpeedPayPaymentBody = exports.ProcessRepayPaymentResponse = exports.ProcessRepayPaymentBody = exports.ProcessPayrazrPaymentResponse = exports.ProcessPayrazrPaymentBody = exports.ProcessPNMPaymentResponse = exports.ProcessPNMPaymentBody = exports.ProcessPayliancePaymentResponse = exports.ProcessPayliancePaymentBody = exports.ProcessMonerisPaymentResponse = exports.ProcessMonerisPaymentBody = exports.UpdateContactResponse = exports.UpdateContactBody = exports.UpdateContactQueryParams = exports.UpdateContactParams = exports.GetContactResponse = exports.GetContactQueryParams = exports.GetContactParams = exports.CreateAloricaNoteResponse = exports.CreateAloricaNoteBody = exports.CreateAloricaNoteQueryParams = exports.GetDebtsResponse = exports.GetDebtsQueryParams = exports.getDebtsQueryIncludeOffersDefault = exports.GetDebtsParams = exports.EndResponse = exports.EndBody = exports.StartBody = exports.startBodyTypeDefault = exports.startBodyPhoneNumberRegExp = exports.CreateCallBody = exports.createCallBodyExternalIdMax = exports.createCallBodyLastNameMax = exports.createCallBodyFirstNameMax = exports.MeResponse = exports.CheckResponse = void 0;
|
|
37
37
|
/**
|
|
38
38
|
* Generated by orval v8.2.0 🍺
|
|
39
39
|
* Do not edit manually.
|
|
@@ -60,6 +60,20 @@ exports.MeResponse = zod.object({
|
|
|
60
60
|
"orgId": zod.string().nullable().describe('Organization identifier if present'),
|
|
61
61
|
"orgRole": zod.string().nullable().describe('User\'s role in the organization')
|
|
62
62
|
});
|
|
63
|
+
/**
|
|
64
|
+
* @summary Create an outbound call
|
|
65
|
+
*/
|
|
66
|
+
exports.createCallBodyFirstNameMax = 100;
|
|
67
|
+
exports.createCallBodyLastNameMax = 100;
|
|
68
|
+
exports.createCallBodyExternalIdMax = 128;
|
|
69
|
+
exports.CreateCallBody = zod.object({
|
|
70
|
+
"campaignId": zod.string().min(1),
|
|
71
|
+
"phoneNumber": zod.string().min(1),
|
|
72
|
+
"firstName": zod.string().max(exports.createCallBodyFirstNameMax).optional(),
|
|
73
|
+
"lastName": zod.string().max(exports.createCallBodyLastNameMax).optional(),
|
|
74
|
+
"externalId": zod.string().min(1).max(exports.createCallBodyExternalIdMax),
|
|
75
|
+
"inputFields": zod.record(zod.string(), zod.unknown()).optional()
|
|
76
|
+
});
|
|
63
77
|
/**
|
|
64
78
|
* Initiates an interaction session with Nubank for a customer. Returns a sourceId that must be used to end the interaction.
|
|
65
79
|
* @summary Start a Nubank customer interaction
|