@l7mp/tivadar-ai-api-sdk 0.2.6 → 0.2.7

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.
Files changed (56) hide show
  1. package/dist/api-client.d.ts +20 -1
  2. package/dist/api-client.js +15 -0
  3. package/dist/apis/PhonebookApi.d.ts +133 -0
  4. package/dist/apis/PhonebookApi.js +434 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/api-client.d.ts +20 -1
  8. package/dist/esm/api-client.js +15 -0
  9. package/dist/esm/apis/PhonebookApi.d.ts +133 -0
  10. package/dist/esm/apis/PhonebookApi.js +430 -0
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +1 -0
  13. package/dist/esm/models/Phonebook.d.ts +56 -0
  14. package/dist/esm/models/Phonebook.js +59 -0
  15. package/dist/esm/models/PhonebookEntry.d.ts +89 -0
  16. package/dist/esm/models/PhonebookEntry.js +79 -0
  17. package/dist/esm/models/PhonebookEntryCreate.d.ts +50 -0
  18. package/dist/esm/models/PhonebookEntryCreate.js +51 -0
  19. package/dist/esm/models/PhonebookEntryUpdate.d.ts +50 -0
  20. package/dist/esm/models/PhonebookEntryUpdate.js +47 -0
  21. package/dist/esm/models/PhonebookImportResult.d.ts +57 -0
  22. package/dist/esm/models/PhonebookImportResult.js +60 -0
  23. package/dist/esm/models/PhonebookImportResultErrorsInner.d.ts +38 -0
  24. package/dist/esm/models/PhonebookImportResultErrorsInner.js +47 -0
  25. package/dist/esm/models/PhonebookUpdate.d.ts +32 -0
  26. package/dist/esm/models/PhonebookUpdate.js +41 -0
  27. package/dist/esm/models/index.d.ts +7 -0
  28. package/dist/esm/models/index.js +7 -0
  29. package/dist/models/Phonebook.d.ts +56 -0
  30. package/dist/models/Phonebook.js +66 -0
  31. package/dist/models/PhonebookEntry.d.ts +89 -0
  32. package/dist/models/PhonebookEntry.js +87 -0
  33. package/dist/models/PhonebookEntryCreate.d.ts +50 -0
  34. package/dist/models/PhonebookEntryCreate.js +58 -0
  35. package/dist/models/PhonebookEntryUpdate.d.ts +50 -0
  36. package/dist/models/PhonebookEntryUpdate.js +54 -0
  37. package/dist/models/PhonebookImportResult.d.ts +57 -0
  38. package/dist/models/PhonebookImportResult.js +67 -0
  39. package/dist/models/PhonebookImportResultErrorsInner.d.ts +38 -0
  40. package/dist/models/PhonebookImportResultErrorsInner.js +54 -0
  41. package/dist/models/PhonebookUpdate.d.ts +32 -0
  42. package/dist/models/PhonebookUpdate.js +48 -0
  43. package/dist/models/index.d.ts +7 -0
  44. package/dist/models/index.js +7 -0
  45. package/package.json +1 -1
  46. package/src/api-client.ts +33 -0
  47. package/src/apis/PhonebookApi.ts +599 -0
  48. package/src/apis/index.ts +1 -0
  49. package/src/models/Phonebook.ts +102 -0
  50. package/src/models/PhonebookEntry.ts +148 -0
  51. package/src/models/PhonebookEntryCreate.ts +91 -0
  52. package/src/models/PhonebookEntryUpdate.ts +89 -0
  53. package/src/models/PhonebookImportResult.ts +110 -0
  54. package/src/models/PhonebookImportResultErrorsInner.ts +75 -0
  55. package/src/models/PhonebookUpdate.ts +65 -0
  56. package/src/models/index.ts +7 -0
@@ -8,6 +8,7 @@ export * from './LLMProvidersApi';
8
8
  export * from './MembersApi';
9
9
  export * from './NotificationsApi';
10
10
  export * from './OrganizationsApi';
11
+ export * from './PhonebookApi';
11
12
  export * from './PlaygroundApi';
12
13
  export * from './ProfileApi';
13
14
  export * from './RAGApi';
@@ -10,6 +10,7 @@ export * from './LLMProvidersApi';
10
10
  export * from './MembersApi';
11
11
  export * from './NotificationsApi';
12
12
  export * from './OrganizationsApi';
13
+ export * from './PhonebookApi';
13
14
  export * from './PlaygroundApi';
14
15
  export * from './ProfileApi';
15
16
  export * from './RAGApi';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Phonebook
16
+ */
17
+ export interface Phonebook {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Phonebook
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Phonebook
28
+ */
29
+ organization_id: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof Phonebook
34
+ */
35
+ auto_populate: boolean;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof Phonebook
40
+ */
41
+ created_at: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof Phonebook
46
+ */
47
+ updated_at: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Phonebook interface.
51
+ */
52
+ export declare function instanceOfPhonebook(value: object): value is Phonebook;
53
+ export declare function PhonebookFromJSON(json: any): Phonebook;
54
+ export declare function PhonebookFromJSONTyped(json: any, ignoreDiscriminator: boolean): Phonebook;
55
+ export declare function PhonebookToJSON(json: any): Phonebook;
56
+ export declare function PhonebookToJSONTyped(value?: Phonebook | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the Phonebook interface.
16
+ */
17
+ export function instanceOfPhonebook(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('organization_id' in value) || value['organization_id'] === undefined)
21
+ return false;
22
+ if (!('auto_populate' in value) || value['auto_populate'] === undefined)
23
+ return false;
24
+ if (!('created_at' in value) || value['created_at'] === undefined)
25
+ return false;
26
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function PhonebookFromJSON(json) {
31
+ return PhonebookFromJSONTyped(json, false);
32
+ }
33
+ export function PhonebookFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'organization_id': json['organization_id'],
40
+ 'auto_populate': json['auto_populate'],
41
+ 'created_at': (new Date(json['created_at'])),
42
+ 'updated_at': (new Date(json['updated_at'])),
43
+ };
44
+ }
45
+ export function PhonebookToJSON(json) {
46
+ return PhonebookToJSONTyped(json, false);
47
+ }
48
+ export function PhonebookToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'organization_id': value['organization_id'],
55
+ 'auto_populate': value['auto_populate'],
56
+ 'created_at': value['created_at'].toISOString(),
57
+ 'updated_at': value['updated_at'].toISOString(),
58
+ };
59
+ }
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PhonebookEntry
16
+ */
17
+ export interface PhonebookEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PhonebookEntry
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PhonebookEntry
28
+ */
29
+ phonebook_id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PhonebookEntry
34
+ */
35
+ phone: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PhonebookEntry
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PhonebookEntry
46
+ */
47
+ company?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof PhonebookEntry
52
+ */
53
+ email?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof PhonebookEntry
58
+ */
59
+ source: PhonebookEntrySourceEnum;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof PhonebookEntry
64
+ */
65
+ created_at: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof PhonebookEntry
70
+ */
71
+ updated_at: Date;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const PhonebookEntrySourceEnum: {
77
+ readonly Manual: "manual";
78
+ readonly Import: "import";
79
+ readonly Auto: "auto";
80
+ };
81
+ export type PhonebookEntrySourceEnum = typeof PhonebookEntrySourceEnum[keyof typeof PhonebookEntrySourceEnum];
82
+ /**
83
+ * Check if a given object implements the PhonebookEntry interface.
84
+ */
85
+ export declare function instanceOfPhonebookEntry(value: object): value is PhonebookEntry;
86
+ export declare function PhonebookEntryFromJSON(json: any): PhonebookEntry;
87
+ export declare function PhonebookEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookEntry;
88
+ export declare function PhonebookEntryToJSON(json: any): PhonebookEntry;
89
+ export declare function PhonebookEntryToJSONTyped(value?: PhonebookEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const PhonebookEntrySourceEnum = {
18
+ Manual: 'manual',
19
+ Import: 'import',
20
+ Auto: 'auto'
21
+ };
22
+ /**
23
+ * Check if a given object implements the PhonebookEntry interface.
24
+ */
25
+ export function instanceOfPhonebookEntry(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('phonebook_id' in value) || value['phonebook_id'] === undefined)
29
+ return false;
30
+ if (!('phone' in value) || value['phone'] === undefined)
31
+ return false;
32
+ if (!('name' in value) || value['name'] === undefined)
33
+ return false;
34
+ if (!('source' in value) || value['source'] === undefined)
35
+ return false;
36
+ if (!('created_at' in value) || value['created_at'] === undefined)
37
+ return false;
38
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ export function PhonebookEntryFromJSON(json) {
43
+ return PhonebookEntryFromJSONTyped(json, false);
44
+ }
45
+ export function PhonebookEntryFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'],
51
+ 'phonebook_id': json['phonebook_id'],
52
+ 'phone': json['phone'],
53
+ 'name': json['name'],
54
+ 'company': json['company'] == null ? undefined : json['company'],
55
+ 'email': json['email'] == null ? undefined : json['email'],
56
+ 'source': json['source'],
57
+ 'created_at': (new Date(json['created_at'])),
58
+ 'updated_at': (new Date(json['updated_at'])),
59
+ };
60
+ }
61
+ export function PhonebookEntryToJSON(json) {
62
+ return PhonebookEntryToJSONTyped(json, false);
63
+ }
64
+ export function PhonebookEntryToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'phonebook_id': value['phonebook_id'],
71
+ 'phone': value['phone'],
72
+ 'name': value['name'],
73
+ 'company': value['company'],
74
+ 'email': value['email'],
75
+ 'source': value['source'],
76
+ 'created_at': value['created_at'].toISOString(),
77
+ 'updated_at': value['updated_at'].toISOString(),
78
+ };
79
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PhonebookEntryCreate
16
+ */
17
+ export interface PhonebookEntryCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PhonebookEntryCreate
22
+ */
23
+ phone: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PhonebookEntryCreate
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PhonebookEntryCreate
34
+ */
35
+ company?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PhonebookEntryCreate
40
+ */
41
+ email?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PhonebookEntryCreate interface.
45
+ */
46
+ export declare function instanceOfPhonebookEntryCreate(value: object): value is PhonebookEntryCreate;
47
+ export declare function PhonebookEntryCreateFromJSON(json: any): PhonebookEntryCreate;
48
+ export declare function PhonebookEntryCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookEntryCreate;
49
+ export declare function PhonebookEntryCreateToJSON(json: any): PhonebookEntryCreate;
50
+ export declare function PhonebookEntryCreateToJSONTyped(value?: PhonebookEntryCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PhonebookEntryCreate interface.
16
+ */
17
+ export function instanceOfPhonebookEntryCreate(value) {
18
+ if (!('phone' in value) || value['phone'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PhonebookEntryCreateFromJSON(json) {
25
+ return PhonebookEntryCreateFromJSONTyped(json, false);
26
+ }
27
+ export function PhonebookEntryCreateFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'phone': json['phone'],
33
+ 'name': json['name'],
34
+ 'company': json['company'] == null ? undefined : json['company'],
35
+ 'email': json['email'] == null ? undefined : json['email'],
36
+ };
37
+ }
38
+ export function PhonebookEntryCreateToJSON(json) {
39
+ return PhonebookEntryCreateToJSONTyped(json, false);
40
+ }
41
+ export function PhonebookEntryCreateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'phone': value['phone'],
47
+ 'name': value['name'],
48
+ 'company': value['company'],
49
+ 'email': value['email'],
50
+ };
51
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PhonebookEntryUpdate
16
+ */
17
+ export interface PhonebookEntryUpdate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PhonebookEntryUpdate
22
+ */
23
+ phone?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PhonebookEntryUpdate
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PhonebookEntryUpdate
34
+ */
35
+ company?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PhonebookEntryUpdate
40
+ */
41
+ email?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PhonebookEntryUpdate interface.
45
+ */
46
+ export declare function instanceOfPhonebookEntryUpdate(value: object): value is PhonebookEntryUpdate;
47
+ export declare function PhonebookEntryUpdateFromJSON(json: any): PhonebookEntryUpdate;
48
+ export declare function PhonebookEntryUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookEntryUpdate;
49
+ export declare function PhonebookEntryUpdateToJSON(json: any): PhonebookEntryUpdate;
50
+ export declare function PhonebookEntryUpdateToJSONTyped(value?: PhonebookEntryUpdate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PhonebookEntryUpdate interface.
16
+ */
17
+ export function instanceOfPhonebookEntryUpdate(value) {
18
+ return true;
19
+ }
20
+ export function PhonebookEntryUpdateFromJSON(json) {
21
+ return PhonebookEntryUpdateFromJSONTyped(json, false);
22
+ }
23
+ export function PhonebookEntryUpdateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'phone': json['phone'] == null ? undefined : json['phone'],
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'company': json['company'] == null ? undefined : json['company'],
31
+ 'email': json['email'] == null ? undefined : json['email'],
32
+ };
33
+ }
34
+ export function PhonebookEntryUpdateToJSON(json) {
35
+ return PhonebookEntryUpdateToJSONTyped(json, false);
36
+ }
37
+ export function PhonebookEntryUpdateToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'phone': value['phone'],
43
+ 'name': value['name'],
44
+ 'company': value['company'],
45
+ 'email': value['email'],
46
+ };
47
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PhonebookImportResultErrorsInner } from './PhonebookImportResultErrorsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PhonebookImportResult
17
+ */
18
+ export interface PhonebookImportResult {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof PhonebookImportResult
23
+ */
24
+ total: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof PhonebookImportResult
29
+ */
30
+ created: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof PhonebookImportResult
35
+ */
36
+ updated: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof PhonebookImportResult
41
+ */
42
+ skipped: number;
43
+ /**
44
+ *
45
+ * @type {Array<PhonebookImportResultErrorsInner>}
46
+ * @memberof PhonebookImportResult
47
+ */
48
+ errors: Array<PhonebookImportResultErrorsInner>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the PhonebookImportResult interface.
52
+ */
53
+ export declare function instanceOfPhonebookImportResult(value: object): value is PhonebookImportResult;
54
+ export declare function PhonebookImportResultFromJSON(json: any): PhonebookImportResult;
55
+ export declare function PhonebookImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookImportResult;
56
+ export declare function PhonebookImportResultToJSON(json: any): PhonebookImportResult;
57
+ export declare function PhonebookImportResultToJSONTyped(value?: PhonebookImportResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tivadar AI Backend API
5
+ * Unified REST API for Tivadar AI Voice Agents platform
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PhonebookImportResultErrorsInnerFromJSON, PhonebookImportResultErrorsInnerToJSON, } from './PhonebookImportResultErrorsInner';
15
+ /**
16
+ * Check if a given object implements the PhonebookImportResult interface.
17
+ */
18
+ export function instanceOfPhonebookImportResult(value) {
19
+ if (!('total' in value) || value['total'] === undefined)
20
+ return false;
21
+ if (!('created' in value) || value['created'] === undefined)
22
+ return false;
23
+ if (!('updated' in value) || value['updated'] === undefined)
24
+ return false;
25
+ if (!('skipped' in value) || value['skipped'] === undefined)
26
+ return false;
27
+ if (!('errors' in value) || value['errors'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function PhonebookImportResultFromJSON(json) {
32
+ return PhonebookImportResultFromJSONTyped(json, false);
33
+ }
34
+ export function PhonebookImportResultFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'total': json['total'],
40
+ 'created': json['created'],
41
+ 'updated': json['updated'],
42
+ 'skipped': json['skipped'],
43
+ 'errors': (json['errors'].map(PhonebookImportResultErrorsInnerFromJSON)),
44
+ };
45
+ }
46
+ export function PhonebookImportResultToJSON(json) {
47
+ return PhonebookImportResultToJSONTyped(json, false);
48
+ }
49
+ export function PhonebookImportResultToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'total': value['total'],
55
+ 'created': value['created'],
56
+ 'updated': value['updated'],
57
+ 'skipped': value['skipped'],
58
+ 'errors': (value['errors'].map(PhonebookImportResultErrorsInnerToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Tivadar AI Backend API
3
+ * Unified REST API for Tivadar AI Voice Agents platform
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PhonebookImportResultErrorsInner
16
+ */
17
+ export interface PhonebookImportResultErrorsInner {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PhonebookImportResultErrorsInner
22
+ */
23
+ row: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PhonebookImportResultErrorsInner
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PhonebookImportResultErrorsInner interface.
33
+ */
34
+ export declare function instanceOfPhonebookImportResultErrorsInner(value: object): value is PhonebookImportResultErrorsInner;
35
+ export declare function PhonebookImportResultErrorsInnerFromJSON(json: any): PhonebookImportResultErrorsInner;
36
+ export declare function PhonebookImportResultErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookImportResultErrorsInner;
37
+ export declare function PhonebookImportResultErrorsInnerToJSON(json: any): PhonebookImportResultErrorsInner;
38
+ export declare function PhonebookImportResultErrorsInnerToJSONTyped(value?: PhonebookImportResultErrorsInner | null, ignoreDiscriminator?: boolean): any;