@amigo-ai/platform-sdk 0.56.0 → 0.57.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.
Files changed (48) hide show
  1. package/README.md +9 -6
  2. package/api.md +9 -22
  3. package/dist/index.cjs +67 -166
  4. package/dist/index.cjs.map +4 -4
  5. package/dist/index.js +4 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +67 -166
  8. package/dist/index.mjs.map +4 -4
  9. package/dist/resources/fhir.js +1 -7
  10. package/dist/resources/fhir.js.map +1 -1
  11. package/dist/resources/settings.js +1 -19
  12. package/dist/resources/settings.js.map +1 -1
  13. package/dist/resources/workspace-data-queries.js +41 -0
  14. package/dist/resources/workspace-data-queries.js.map +1 -0
  15. package/dist/resources/world.js +0 -27
  16. package/dist/resources/world.js.map +1 -1
  17. package/dist/types/generated/api.d.ts +885 -2242
  18. package/dist/types/generated/api.d.ts.map +1 -1
  19. package/dist/types/index.d.cts +4 -2
  20. package/dist/types/index.d.cts.map +1 -1
  21. package/dist/types/index.d.ts +4 -2
  22. package/dist/types/index.d.ts.map +1 -1
  23. package/dist/types/resources/actions.d.ts +0 -5
  24. package/dist/types/resources/actions.d.ts.map +1 -1
  25. package/dist/types/resources/calls.d.ts +12 -0
  26. package/dist/types/resources/calls.d.ts.map +1 -1
  27. package/dist/types/resources/fhir.d.ts +1 -22
  28. package/dist/types/resources/fhir.d.ts.map +1 -1
  29. package/dist/types/resources/intake.d.ts.map +1 -1
  30. package/dist/types/resources/metrics.d.ts +6 -2
  31. package/dist/types/resources/metrics.d.ts.map +1 -1
  32. package/dist/types/resources/operators.d.ts.map +1 -1
  33. package/dist/types/resources/services.d.ts +135 -0
  34. package/dist/types/resources/services.d.ts.map +1 -1
  35. package/dist/types/resources/settings.d.ts +5 -143
  36. package/dist/types/resources/settings.d.ts.map +1 -1
  37. package/dist/types/resources/skills.d.ts +0 -5
  38. package/dist/types/resources/skills.d.ts.map +1 -1
  39. package/dist/types/resources/surfaces.d.ts.map +1 -1
  40. package/dist/types/resources/workspace-data-queries.d.ts +22 -0
  41. package/dist/types/resources/workspace-data-queries.d.ts.map +1 -0
  42. package/dist/types/resources/world.d.ts +25 -82
  43. package/dist/types/resources/world.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/resources/webhook-destinations.js +0 -50
  46. package/dist/resources/webhook-destinations.js.map +0 -1
  47. package/dist/types/resources/webhook-destinations.d.ts +0 -125
  48. package/dist/types/resources/webhook-destinations.d.ts.map +0 -1
@@ -1,125 +0,0 @@
1
- import type { components } from '../generated/api.js';
2
- import { WorkspaceScopedResource } from './base.js';
3
- import type { ListParams } from '../core/utils.js';
4
- export declare class WebhookDestinationsResource extends WorkspaceScopedResource {
5
- list(params?: ListParams): Promise<{
6
- continuation_token?: number | null | undefined;
7
- has_more: boolean;
8
- items: {
9
- accepted_event_types: string[];
10
- created_at?: string | null | undefined;
11
- created_by: string | null;
12
- description: string | null;
13
- field_mapping: {
14
- [x: string]: unknown;
15
- } | null;
16
- id: string;
17
- is_active: boolean;
18
- name: string;
19
- retry_attempts: number;
20
- trigger_id: string;
21
- updated_at?: string | null | undefined;
22
- url: string;
23
- workspace_id: string;
24
- }[];
25
- total?: number | null | undefined;
26
- } & import("../index.js").ResponseMetadata>;
27
- listAutoPaging(params?: ListParams): AsyncGenerator<{
28
- accepted_event_types: string[];
29
- created_at?: string | null | undefined;
30
- created_by: string | null;
31
- description: string | null;
32
- field_mapping: {
33
- [x: string]: unknown;
34
- } | null;
35
- id: string;
36
- is_active: boolean;
37
- name: string;
38
- retry_attempts: number;
39
- trigger_id: string;
40
- updated_at?: string | null | undefined;
41
- url: string;
42
- workspace_id: string;
43
- }, any, any>;
44
- create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
45
- accepted_event_types: string[];
46
- created_at?: string | null | undefined;
47
- created_by: string | null;
48
- description: string | null;
49
- field_mapping: {
50
- [x: string]: unknown;
51
- } | null;
52
- id: string;
53
- is_active: boolean;
54
- name: string;
55
- retry_attempts: number;
56
- secret: string;
57
- trigger_id: string;
58
- updated_at?: string | null | undefined;
59
- url: string;
60
- workspace_id: string;
61
- } & import("../index.js").ResponseMetadata>;
62
- get(destinationId: string): Promise<{
63
- accepted_event_types: string[];
64
- created_at?: string | null | undefined;
65
- created_by: string | null;
66
- description: string | null;
67
- field_mapping: {
68
- [x: string]: unknown;
69
- } | null;
70
- id: string;
71
- is_active: boolean;
72
- name: string;
73
- retry_attempts: number;
74
- trigger_id: string;
75
- updated_at?: string | null | undefined;
76
- url: string;
77
- workspace_id: string;
78
- } & import("../index.js").ResponseMetadata>;
79
- update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
80
- accepted_event_types: string[];
81
- created_at?: string | null | undefined;
82
- created_by: string | null;
83
- description: string | null;
84
- field_mapping: {
85
- [x: string]: unknown;
86
- } | null;
87
- id: string;
88
- is_active: boolean;
89
- name: string;
90
- retry_attempts: number;
91
- trigger_id: string;
92
- updated_at?: string | null | undefined;
93
- url: string;
94
- workspace_id: string;
95
- } & import("../index.js").ResponseMetadata>;
96
- delete(destinationId: string): Promise<void>;
97
- listDeliveries(destinationId: string, params?: ListParams): Promise<{
98
- continuation_token?: number | null | undefined;
99
- has_more: boolean;
100
- items: {
101
- created_at?: string | null | undefined;
102
- data: {
103
- [x: string]: unknown;
104
- };
105
- effective_at: string | null;
106
- event_id: string;
107
- event_type: string;
108
- }[];
109
- total?: number | null | undefined;
110
- } & import("../index.js").ResponseMetadata>;
111
- listDeliveriesAutoPaging(destinationId: string, params?: ListParams): AsyncGenerator<{
112
- created_at?: string | null | undefined;
113
- data: {
114
- [x: string]: unknown;
115
- };
116
- effective_at: string | null;
117
- event_id: string;
118
- event_type: string;
119
- }, any, any>;
120
- rotateSecret(destinationId: string): Promise<{
121
- rotation_expires_at: string;
122
- secret: string;
123
- } & import("../index.js").ResponseMetadata>;
124
- }
125
- //# sourceMappingURL=webhook-destinations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhook-destinations.d.ts","sourceRoot":"","sources":["../../../src/resources/webhook-destinations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,qBAAa,2BAA4B,SAAQ,uBAAuB;IAChE,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;IAI5B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;;IASrE,GAAG,CAAC,aAAa,EAAE,MAAM;;;;;;;;;;;;;;;;;IAQzB,MAAM,CACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;IAU1D,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;IAW/D,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;IAO7D,YAAY,CAAC,aAAa,EAAE,MAAM;;;;CAUzC"}