@amigo-ai/platform-sdk 0.4.5 → 0.4.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.
- package/LICENSE +1 -1
- package/README.md +14 -10
- package/api.md +50 -0
- package/dist/index.cjs +305 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +305 -1
- package/dist/index.mjs.map +3 -3
- package/dist/resources/actions.js +9 -0
- package/dist/resources/actions.js.map +1 -1
- package/dist/resources/agents.js +6 -0
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/analytics.js +18 -0
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/api-keys.js +3 -0
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/audit.js +9 -0
- package/dist/resources/audit.js.map +1 -1
- package/dist/resources/base.js +26 -0
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/billing.js +3 -0
- package/dist/resources/billing.js.map +1 -1
- package/dist/resources/calls.js +9 -0
- package/dist/resources/calls.js.map +1 -1
- package/dist/resources/context-graphs.js +7 -1
- package/dist/resources/context-graphs.js.map +1 -1
- package/dist/resources/data-sources.js +3 -0
- package/dist/resources/data-sources.js.map +1 -1
- package/dist/resources/integrations.js +3 -0
- package/dist/resources/integrations.js.map +1 -1
- package/dist/resources/operators.js +16 -0
- package/dist/resources/operators.js.map +1 -1
- package/dist/resources/personas.js +3 -0
- package/dist/resources/personas.js.map +1 -1
- package/dist/resources/phone-numbers.js +3 -0
- package/dist/resources/phone-numbers.js.map +1 -1
- package/dist/resources/review-queue.js +9 -0
- package/dist/resources/review-queue.js.map +1 -1
- package/dist/resources/services.js +3 -0
- package/dist/resources/services.js.map +1 -1
- package/dist/resources/settings.js +45 -0
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/skills.js +3 -0
- package/dist/resources/skills.js.map +1 -1
- package/dist/resources/triggers.js +6 -0
- package/dist/resources/triggers.js.map +1 -1
- package/dist/resources/webhook-destinations.js +6 -0
- package/dist/resources/webhook-destinations.js.map +1 -1
- package/dist/resources/workspaces.js +3 -0
- package/dist/resources/workspaces.js.map +1 -1
- package/dist/resources/world.js +34 -0
- package/dist/resources/world.js.map +1 -1
- package/dist/types/generated/api.d.ts +762 -53
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +166 -17
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/agents.d.ts +123 -13
- package/dist/types/resources/agents.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +103 -15
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/api-keys.d.ts +32 -3
- package/dist/types/resources/api-keys.d.ts.map +1 -1
- package/dist/types/resources/audit.d.ts +114 -4
- package/dist/types/resources/audit.d.ts.map +1 -1
- package/dist/types/resources/base.d.ts +11 -0
- package/dist/types/resources/base.d.ts.map +1 -1
- package/dist/types/resources/billing.d.ts +58 -8
- package/dist/types/resources/billing.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +183 -45
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/compliance.d.ts +6 -6
- package/dist/types/resources/context-graphs.d.ts +840 -16
- package/dist/types/resources/context-graphs.d.ts.map +1 -1
- package/dist/types/resources/data-sources.d.ts +88 -25
- package/dist/types/resources/data-sources.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +49 -22
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +390 -39
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/memory.d.ts +48 -4
- package/dist/types/resources/memory.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts +238 -40
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/personas.d.ts +33 -6
- package/dist/types/resources/personas.d.ts.map +1 -1
- package/dist/types/resources/phone-numbers.d.ts +60 -7
- package/dist/types/resources/phone-numbers.d.ts.map +1 -1
- package/dist/types/resources/recordings.d.ts +4 -4
- package/dist/types/resources/review-queue.d.ts +398 -37
- package/dist/types/resources/review-queue.d.ts.map +1 -1
- package/dist/types/resources/safety.d.ts +32 -6
- package/dist/types/resources/safety.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +227 -36
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +450 -14
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/simulations.d.ts +150 -22
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +151 -17
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/triggers.d.ts +110 -52
- package/dist/types/resources/triggers.d.ts.map +1 -1
- package/dist/types/resources/webhook-destinations.d.ts +65 -15
- package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
- package/dist/types/resources/workspaces.d.ts +26 -3
- package/dist/types/resources/workspaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts +389 -56
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -3,127 +3,185 @@ import { WorkspaceScopedResource } from './base.js';
|
|
|
3
3
|
import type { ListParams } from '../core/utils.js';
|
|
4
4
|
export declare class TriggersResource extends WorkspaceScopedResource {
|
|
5
5
|
list(params?: ListParams): Promise<{
|
|
6
|
-
continuation_token?: number | null;
|
|
6
|
+
continuation_token?: number | null | undefined;
|
|
7
7
|
has_more: boolean;
|
|
8
|
-
items:
|
|
9
|
-
|
|
8
|
+
items: {
|
|
9
|
+
action_id: string;
|
|
10
|
+
created_at?: string | null | undefined;
|
|
11
|
+
created_by?: string | null | undefined;
|
|
12
|
+
description?: string | null | undefined;
|
|
13
|
+
event_filter?: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
} | null | undefined;
|
|
16
|
+
event_type: string;
|
|
17
|
+
id: string;
|
|
18
|
+
input_template: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
is_active: boolean;
|
|
22
|
+
name: string;
|
|
23
|
+
next_fire_at?: string | null | undefined;
|
|
24
|
+
schedule?: string | null | undefined;
|
|
25
|
+
timezone: string;
|
|
26
|
+
updated_at?: string | null | undefined;
|
|
27
|
+
workspace_id: string;
|
|
28
|
+
}[];
|
|
29
|
+
total?: number | null | undefined;
|
|
10
30
|
} & import("../index.js").ResponseMetadata>;
|
|
31
|
+
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
32
|
+
action_id: string;
|
|
33
|
+
created_at?: string | null | undefined;
|
|
34
|
+
created_by?: string | null | undefined;
|
|
35
|
+
description?: string | null | undefined;
|
|
36
|
+
event_filter?: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
} | null | undefined;
|
|
39
|
+
event_type: string;
|
|
40
|
+
id: string;
|
|
41
|
+
input_template: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
is_active: boolean;
|
|
45
|
+
name: string;
|
|
46
|
+
next_fire_at?: string | null | undefined;
|
|
47
|
+
schedule?: string | null | undefined;
|
|
48
|
+
timezone: string;
|
|
49
|
+
updated_at?: string | null | undefined;
|
|
50
|
+
workspace_id: string;
|
|
51
|
+
}, any, any>;
|
|
11
52
|
create(body: components['schemas']['CreateTriggerRequest']): Promise<{
|
|
12
53
|
action_id: string;
|
|
13
|
-
created_at?: string | null;
|
|
14
|
-
created_by?: string | null;
|
|
15
|
-
description?: string | null;
|
|
54
|
+
created_at?: string | null | undefined;
|
|
55
|
+
created_by?: string | null | undefined;
|
|
56
|
+
description?: string | null | undefined;
|
|
16
57
|
event_filter?: {
|
|
17
|
-
[
|
|
18
|
-
} | null;
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
} | null | undefined;
|
|
19
60
|
event_type: string;
|
|
20
61
|
id: string;
|
|
21
62
|
input_template: {
|
|
22
|
-
[
|
|
63
|
+
[x: string]: unknown;
|
|
23
64
|
};
|
|
24
65
|
is_active: boolean;
|
|
25
66
|
name: string;
|
|
26
|
-
next_fire_at?: string | null;
|
|
27
|
-
schedule?: string | null;
|
|
67
|
+
next_fire_at?: string | null | undefined;
|
|
68
|
+
schedule?: string | null | undefined;
|
|
28
69
|
timezone: string;
|
|
29
|
-
updated_at?: string | null;
|
|
70
|
+
updated_at?: string | null | undefined;
|
|
30
71
|
workspace_id: string;
|
|
31
72
|
} & import("../index.js").ResponseMetadata>;
|
|
32
73
|
get(triggerId: string): Promise<{
|
|
33
74
|
action_id: string;
|
|
34
|
-
created_at?: string | null;
|
|
35
|
-
created_by?: string | null;
|
|
36
|
-
description?: string | null;
|
|
75
|
+
created_at?: string | null | undefined;
|
|
76
|
+
created_by?: string | null | undefined;
|
|
77
|
+
description?: string | null | undefined;
|
|
37
78
|
event_filter?: {
|
|
38
|
-
[
|
|
39
|
-
} | null;
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
} | null | undefined;
|
|
40
81
|
event_type: string;
|
|
41
82
|
id: string;
|
|
42
83
|
input_template: {
|
|
43
|
-
[
|
|
84
|
+
[x: string]: unknown;
|
|
44
85
|
};
|
|
45
86
|
is_active: boolean;
|
|
46
87
|
name: string;
|
|
47
|
-
next_fire_at?: string | null;
|
|
48
|
-
schedule?: string | null;
|
|
88
|
+
next_fire_at?: string | null | undefined;
|
|
89
|
+
schedule?: string | null | undefined;
|
|
49
90
|
timezone: string;
|
|
50
|
-
updated_at?: string | null;
|
|
91
|
+
updated_at?: string | null | undefined;
|
|
51
92
|
workspace_id: string;
|
|
52
93
|
} & import("../index.js").ResponseMetadata>;
|
|
53
94
|
update(triggerId: string, body: components['schemas']['UpdateTriggerRequest']): Promise<{
|
|
54
95
|
action_id: string;
|
|
55
|
-
created_at?: string | null;
|
|
56
|
-
created_by?: string | null;
|
|
57
|
-
description?: string | null;
|
|
96
|
+
created_at?: string | null | undefined;
|
|
97
|
+
created_by?: string | null | undefined;
|
|
98
|
+
description?: string | null | undefined;
|
|
58
99
|
event_filter?: {
|
|
59
|
-
[
|
|
60
|
-
} | null;
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
} | null | undefined;
|
|
61
102
|
event_type: string;
|
|
62
103
|
id: string;
|
|
63
104
|
input_template: {
|
|
64
|
-
[
|
|
105
|
+
[x: string]: unknown;
|
|
65
106
|
};
|
|
66
107
|
is_active: boolean;
|
|
67
108
|
name: string;
|
|
68
|
-
next_fire_at?: string | null;
|
|
69
|
-
schedule?: string | null;
|
|
109
|
+
next_fire_at?: string | null | undefined;
|
|
110
|
+
schedule?: string | null | undefined;
|
|
70
111
|
timezone: string;
|
|
71
|
-
updated_at?: string | null;
|
|
112
|
+
updated_at?: string | null | undefined;
|
|
72
113
|
workspace_id: string;
|
|
73
114
|
} & import("../index.js").ResponseMetadata>;
|
|
74
115
|
delete(triggerId: string): Promise<void>;
|
|
75
116
|
fire(triggerId: string): Promise<{
|
|
76
117
|
fired_event_id: string;
|
|
77
|
-
status?: "fired";
|
|
118
|
+
status?: "fired" | undefined;
|
|
78
119
|
trigger_id: string;
|
|
79
120
|
} & import("../index.js").ResponseMetadata>;
|
|
80
121
|
pause(triggerId: string): Promise<{
|
|
81
122
|
action_id: string;
|
|
82
|
-
created_at?: string | null;
|
|
83
|
-
created_by?: string | null;
|
|
84
|
-
description?: string | null;
|
|
123
|
+
created_at?: string | null | undefined;
|
|
124
|
+
created_by?: string | null | undefined;
|
|
125
|
+
description?: string | null | undefined;
|
|
85
126
|
event_filter?: {
|
|
86
|
-
[
|
|
87
|
-
} | null;
|
|
127
|
+
[x: string]: unknown;
|
|
128
|
+
} | null | undefined;
|
|
88
129
|
event_type: string;
|
|
89
130
|
id: string;
|
|
90
131
|
input_template: {
|
|
91
|
-
[
|
|
132
|
+
[x: string]: unknown;
|
|
92
133
|
};
|
|
93
134
|
is_active: boolean;
|
|
94
135
|
name: string;
|
|
95
|
-
next_fire_at?: string | null;
|
|
96
|
-
schedule?: string | null;
|
|
136
|
+
next_fire_at?: string | null | undefined;
|
|
137
|
+
schedule?: string | null | undefined;
|
|
97
138
|
timezone: string;
|
|
98
|
-
updated_at?: string | null;
|
|
139
|
+
updated_at?: string | null | undefined;
|
|
99
140
|
workspace_id: string;
|
|
100
141
|
} & import("../index.js").ResponseMetadata>;
|
|
101
142
|
resume(triggerId: string): Promise<{
|
|
102
143
|
action_id: string;
|
|
103
|
-
created_at?: string | null;
|
|
104
|
-
created_by?: string | null;
|
|
105
|
-
description?: string | null;
|
|
144
|
+
created_at?: string | null | undefined;
|
|
145
|
+
created_by?: string | null | undefined;
|
|
146
|
+
description?: string | null | undefined;
|
|
106
147
|
event_filter?: {
|
|
107
|
-
[
|
|
108
|
-
} | null;
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
} | null | undefined;
|
|
109
150
|
event_type: string;
|
|
110
151
|
id: string;
|
|
111
152
|
input_template: {
|
|
112
|
-
[
|
|
153
|
+
[x: string]: unknown;
|
|
113
154
|
};
|
|
114
155
|
is_active: boolean;
|
|
115
156
|
name: string;
|
|
116
|
-
next_fire_at?: string | null;
|
|
117
|
-
schedule?: string | null;
|
|
157
|
+
next_fire_at?: string | null | undefined;
|
|
158
|
+
schedule?: string | null | undefined;
|
|
118
159
|
timezone: string;
|
|
119
|
-
updated_at?: string | null;
|
|
160
|
+
updated_at?: string | null | undefined;
|
|
120
161
|
workspace_id: string;
|
|
121
162
|
} & import("../index.js").ResponseMetadata>;
|
|
122
163
|
listRuns(triggerId: string, params?: ListParams): Promise<{
|
|
123
|
-
continuation_token?: number | null;
|
|
164
|
+
continuation_token?: number | null | undefined;
|
|
124
165
|
has_more: boolean;
|
|
125
|
-
items:
|
|
126
|
-
|
|
166
|
+
items: {
|
|
167
|
+
created_at?: string | null | undefined;
|
|
168
|
+
data: {
|
|
169
|
+
[x: string]: unknown;
|
|
170
|
+
};
|
|
171
|
+
effective_at?: string | null | undefined;
|
|
172
|
+
event_id: string;
|
|
173
|
+
event_type: string;
|
|
174
|
+
}[];
|
|
175
|
+
total?: number | null | undefined;
|
|
127
176
|
} & import("../index.js").ResponseMetadata>;
|
|
177
|
+
listRunsAutoPaging(triggerId: string, params?: ListParams): AsyncGenerator<{
|
|
178
|
+
created_at?: string | null | undefined;
|
|
179
|
+
data: {
|
|
180
|
+
[x: string]: unknown;
|
|
181
|
+
};
|
|
182
|
+
effective_at?: string | null | undefined;
|
|
183
|
+
event_id: string;
|
|
184
|
+
event_type: string;
|
|
185
|
+
}, any, any>;
|
|
128
186
|
}
|
|
129
187
|
//# sourceMappingURL=triggers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/resources/triggers.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,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/resources/triggers.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,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;IAI5B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQrB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;;;;;;;;IAS7E,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMxC,IAAI,CAAC,SAAS,EAAE,MAAM;;;;;IAQtB,KAAK,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQvB,MAAM,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQxB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;IAQrD,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;CAG1D"}
|
|
@@ -3,18 +3,51 @@ import { WorkspaceScopedResource } from './base.js';
|
|
|
3
3
|
import type { ListParams } from '../core/utils.js';
|
|
4
4
|
export declare class WebhookDestinationsResource extends WorkspaceScopedResource {
|
|
5
5
|
list(params?: ListParams): Promise<{
|
|
6
|
-
continuation_token?: number | null;
|
|
6
|
+
continuation_token?: number | null | undefined;
|
|
7
7
|
has_more: boolean;
|
|
8
|
-
items:
|
|
9
|
-
|
|
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;
|
|
10
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>;
|
|
11
44
|
create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
|
|
12
45
|
accepted_event_types: string[];
|
|
13
|
-
created_at?: string | null;
|
|
46
|
+
created_at?: string | null | undefined;
|
|
14
47
|
created_by: string | null;
|
|
15
48
|
description: string | null;
|
|
16
49
|
field_mapping: {
|
|
17
|
-
[
|
|
50
|
+
[x: string]: unknown;
|
|
18
51
|
} | null;
|
|
19
52
|
id: string;
|
|
20
53
|
is_active: boolean;
|
|
@@ -22,51 +55,68 @@ export declare class WebhookDestinationsResource extends WorkspaceScopedResource
|
|
|
22
55
|
retry_attempts: number;
|
|
23
56
|
secret: string;
|
|
24
57
|
trigger_id: string;
|
|
25
|
-
updated_at?: string | null;
|
|
58
|
+
updated_at?: string | null | undefined;
|
|
26
59
|
url: string;
|
|
27
60
|
workspace_id: string;
|
|
28
61
|
} & import("../index.js").ResponseMetadata>;
|
|
29
62
|
get(destinationId: string): Promise<{
|
|
30
63
|
accepted_event_types: string[];
|
|
31
|
-
created_at?: string | null;
|
|
64
|
+
created_at?: string | null | undefined;
|
|
32
65
|
created_by: string | null;
|
|
33
66
|
description: string | null;
|
|
34
67
|
field_mapping: {
|
|
35
|
-
[
|
|
68
|
+
[x: string]: unknown;
|
|
36
69
|
} | null;
|
|
37
70
|
id: string;
|
|
38
71
|
is_active: boolean;
|
|
39
72
|
name: string;
|
|
40
73
|
retry_attempts: number;
|
|
41
74
|
trigger_id: string;
|
|
42
|
-
updated_at?: string | null;
|
|
75
|
+
updated_at?: string | null | undefined;
|
|
43
76
|
url: string;
|
|
44
77
|
workspace_id: string;
|
|
45
78
|
} & import("../index.js").ResponseMetadata>;
|
|
46
79
|
update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
|
|
47
80
|
accepted_event_types: string[];
|
|
48
|
-
created_at?: string | null;
|
|
81
|
+
created_at?: string | null | undefined;
|
|
49
82
|
created_by: string | null;
|
|
50
83
|
description: string | null;
|
|
51
84
|
field_mapping: {
|
|
52
|
-
[
|
|
85
|
+
[x: string]: unknown;
|
|
53
86
|
} | null;
|
|
54
87
|
id: string;
|
|
55
88
|
is_active: boolean;
|
|
56
89
|
name: string;
|
|
57
90
|
retry_attempts: number;
|
|
58
91
|
trigger_id: string;
|
|
59
|
-
updated_at?: string | null;
|
|
92
|
+
updated_at?: string | null | undefined;
|
|
60
93
|
url: string;
|
|
61
94
|
workspace_id: string;
|
|
62
95
|
} & import("../index.js").ResponseMetadata>;
|
|
63
96
|
delete(destinationId: string): Promise<void>;
|
|
64
97
|
listDeliveries(destinationId: string, params?: ListParams): Promise<{
|
|
65
|
-
continuation_token?: number | null;
|
|
98
|
+
continuation_token?: number | null | undefined;
|
|
66
99
|
has_more: boolean;
|
|
67
|
-
items:
|
|
68
|
-
|
|
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;
|
|
69
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>;
|
|
70
120
|
rotateSecret(destinationId: string): Promise<{
|
|
71
121
|
rotation_expires_at: string;
|
|
72
122
|
secret: string;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;;;;;;;;IAc/D,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;IAO7D,YAAY,CAAC,aAAa,EAAE,MAAM;;;;CAUzC"}
|
|
@@ -25,11 +25,34 @@ export declare class WorkspacesResource extends WorkspaceScopedResource {
|
|
|
25
25
|
} & import("../index.js").ResponseMetadata>;
|
|
26
26
|
/** List workspaces accessible to the current API key */
|
|
27
27
|
list(params?: ListParams): Promise<{
|
|
28
|
-
continuation_token?: number | null;
|
|
28
|
+
continuation_token?: number | null | undefined;
|
|
29
29
|
has_more: boolean;
|
|
30
|
-
items:
|
|
31
|
-
|
|
30
|
+
items: {
|
|
31
|
+
backend_org_id: string | null;
|
|
32
|
+
connector_type: string | null;
|
|
33
|
+
created_at: string;
|
|
34
|
+
environment: string;
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
provisioned_at: string | null;
|
|
38
|
+
region: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
}[];
|
|
42
|
+
total?: number | null | undefined;
|
|
32
43
|
} & import("../index.js").ResponseMetadata>;
|
|
44
|
+
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
45
|
+
backend_org_id: string | null;
|
|
46
|
+
connector_type: string | null;
|
|
47
|
+
created_at: string;
|
|
48
|
+
environment: string;
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
provisioned_at: string | null;
|
|
52
|
+
region: string;
|
|
53
|
+
slug: string;
|
|
54
|
+
updated_at: string;
|
|
55
|
+
}, any, any>;
|
|
33
56
|
/** Get a single workspace by ID */
|
|
34
57
|
get(id?: WorkspaceId | string): Promise<{
|
|
35
58
|
backend_org_id: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,uBAAuB;IAC7D,6BAA6B;IACvB,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;;;;;;;;;;;;IAQlE,wDAAwD;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,uBAAuB;IAC7D,6BAA6B;IACvB,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC;;;;;;;;;;;;IAQlE,wDAAwD;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;IAIlC,mCAAmC;IAC7B,GAAG,CAAC,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM;;;;;;;;;;;;IAQnC,gCAAgC;IAC1B,MAAM,CACV,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,wBAAwB,CAAC,EACrD,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM;;;;;;;;;;;;IAU3B,wCAAwC;IAClC,OAAO,CACX,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,EACtD,EAAE,CAAC,EAAE,WAAW,GAAG,MAAM;;;;;;;;;;;;CAS5B"}
|