@amigo-ai/platform-sdk 0.5.1 → 0.5.3

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/README.md +81 -7
  2. package/api.md +5 -0
  3. package/dist/index.cjs +43 -10
  4. package/dist/index.cjs.map +2 -2
  5. package/dist/index.js +1 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +43 -10
  8. package/dist/index.mjs.map +2 -2
  9. package/dist/resources/base.js +7 -2
  10. package/dist/resources/base.js.map +1 -1
  11. package/dist/resources/operators.js.map +1 -1
  12. package/dist/resources/personas.js.map +1 -1
  13. package/dist/resources/webhook-destinations.js.map +1 -1
  14. package/dist/resources/workspaces.js +22 -0
  15. package/dist/resources/workspaces.js.map +1 -1
  16. package/dist/resources/world.js.map +1 -1
  17. package/dist/types/generated/api.d.ts +13373 -13213
  18. package/dist/types/generated/api.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +3 -2
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/dist/types/resources/actions.d.ts +166 -166
  22. package/dist/types/resources/agents.d.ts +88 -88
  23. package/dist/types/resources/analytics.d.ts +39 -39
  24. package/dist/types/resources/api-keys.d.ts +29 -29
  25. package/dist/types/resources/audit.d.ts +73 -73
  26. package/dist/types/resources/base.d.ts.map +1 -1
  27. package/dist/types/resources/billing.d.ts +36 -36
  28. package/dist/types/resources/calls.d.ts +106 -106
  29. package/dist/types/resources/compliance.d.ts +17 -17
  30. package/dist/types/resources/context-graphs.d.ts +643 -643
  31. package/dist/types/resources/data-sources.d.ts +81 -81
  32. package/dist/types/resources/functions.d.ts +22 -22
  33. package/dist/types/resources/functions.d.ts.map +1 -1
  34. package/dist/types/resources/integrations.d.ts +258 -258
  35. package/dist/types/resources/memory.d.ts +35 -35
  36. package/dist/types/resources/operators.d.ts +147 -147
  37. package/dist/types/resources/operators.d.ts.map +1 -1
  38. package/dist/types/resources/personas.d.ts +37 -37
  39. package/dist/types/resources/personas.d.ts.map +1 -1
  40. package/dist/types/resources/phone-numbers.d.ts +62 -62
  41. package/dist/types/resources/recordings.d.ts +9 -9
  42. package/dist/types/resources/review-queue.d.ts +331 -331
  43. package/dist/types/resources/safety.d.ts +33 -33
  44. package/dist/types/resources/services.d.ts +142 -142
  45. package/dist/types/resources/settings.d.ts +254 -254
  46. package/dist/types/resources/settings.d.ts.map +1 -1
  47. package/dist/types/resources/simulations.d.ts +73 -73
  48. package/dist/types/resources/skills.d.ts +163 -163
  49. package/dist/types/resources/triggers.d.ts +74 -74
  50. package/dist/types/resources/webhook-destinations.d.ts +57 -57
  51. package/dist/types/resources/webhook-destinations.d.ts.map +1 -1
  52. package/dist/types/resources/workspaces.d.ts +69 -35
  53. package/dist/types/resources/workspaces.d.ts.map +1 -1
  54. package/dist/types/resources/world.d.ts +216 -216
  55. package/dist/types/resources/world.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -3,185 +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 | undefined;
7
- has_more: boolean;
8
6
  items: {
9
- action_id: string;
10
- created_at?: string | null | undefined;
11
- created_by?: string | null | undefined;
7
+ id: string;
8
+ workspace_id: string;
9
+ name: string;
12
10
  description?: string | null | undefined;
11
+ event_type: string;
13
12
  event_filter?: {
14
13
  [x: string]: unknown;
15
14
  } | null | undefined;
16
- event_type: string;
17
- id: string;
15
+ action_id: string;
18
16
  input_template: {
19
17
  [x: string]: unknown;
20
18
  };
21
- is_active: boolean;
22
- name: string;
23
- next_fire_at?: string | null | undefined;
24
19
  schedule?: string | null | undefined;
25
20
  timezone: string;
21
+ next_fire_at?: string | null | undefined;
22
+ is_active: boolean;
23
+ created_by?: string | null | undefined;
24
+ created_at?: string | null | undefined;
26
25
  updated_at?: string | null | undefined;
27
- workspace_id: string;
28
26
  }[];
27
+ has_more: boolean;
28
+ continuation_token?: number | null | undefined;
29
29
  total?: number | null | undefined;
30
30
  } & import("../index.js").ResponseMetadata>;
31
31
  listAutoPaging(params?: ListParams): AsyncGenerator<{
32
- action_id: string;
33
- created_at?: string | null | undefined;
34
- created_by?: string | null | undefined;
32
+ id: string;
33
+ workspace_id: string;
34
+ name: string;
35
35
  description?: string | null | undefined;
36
+ event_type: string;
36
37
  event_filter?: {
37
38
  [x: string]: unknown;
38
39
  } | null | undefined;
39
- event_type: string;
40
- id: string;
40
+ action_id: string;
41
41
  input_template: {
42
42
  [x: string]: unknown;
43
43
  };
44
- is_active: boolean;
45
- name: string;
46
- next_fire_at?: string | null | undefined;
47
44
  schedule?: string | null | undefined;
48
45
  timezone: string;
46
+ next_fire_at?: string | null | undefined;
47
+ is_active: boolean;
48
+ created_by?: string | null | undefined;
49
+ created_at?: string | null | undefined;
49
50
  updated_at?: string | null | undefined;
50
- workspace_id: string;
51
51
  }, any, any>;
52
52
  create(body: components['schemas']['CreateTriggerRequest']): Promise<{
53
- action_id: string;
54
- created_at?: string | null | undefined;
55
- created_by?: string | null | undefined;
53
+ id: string;
54
+ workspace_id: string;
55
+ name: string;
56
56
  description?: string | null | undefined;
57
+ event_type: string;
57
58
  event_filter?: {
58
59
  [x: string]: unknown;
59
60
  } | null | undefined;
60
- event_type: string;
61
- id: string;
61
+ action_id: string;
62
62
  input_template: {
63
63
  [x: string]: unknown;
64
64
  };
65
- is_active: boolean;
66
- name: string;
67
- next_fire_at?: string | null | undefined;
68
65
  schedule?: string | null | undefined;
69
66
  timezone: string;
67
+ next_fire_at?: string | null | undefined;
68
+ is_active: boolean;
69
+ created_by?: string | null | undefined;
70
+ created_at?: string | null | undefined;
70
71
  updated_at?: string | null | undefined;
71
- workspace_id: string;
72
72
  } & import("../index.js").ResponseMetadata>;
73
73
  get(triggerId: string): Promise<{
74
- action_id: string;
75
- created_at?: string | null | undefined;
76
- created_by?: string | null | undefined;
74
+ id: string;
75
+ workspace_id: string;
76
+ name: string;
77
77
  description?: string | null | undefined;
78
+ event_type: string;
78
79
  event_filter?: {
79
80
  [x: string]: unknown;
80
81
  } | null | undefined;
81
- event_type: string;
82
- id: string;
82
+ action_id: string;
83
83
  input_template: {
84
84
  [x: string]: unknown;
85
85
  };
86
- is_active: boolean;
87
- name: string;
88
- next_fire_at?: string | null | undefined;
89
86
  schedule?: string | null | undefined;
90
87
  timezone: string;
88
+ next_fire_at?: string | null | undefined;
89
+ is_active: boolean;
90
+ created_by?: string | null | undefined;
91
+ created_at?: string | null | undefined;
91
92
  updated_at?: string | null | undefined;
92
- workspace_id: string;
93
93
  } & import("../index.js").ResponseMetadata>;
94
94
  update(triggerId: string, body: components['schemas']['UpdateTriggerRequest']): Promise<{
95
- action_id: string;
96
- created_at?: string | null | undefined;
97
- created_by?: string | null | undefined;
95
+ id: string;
96
+ workspace_id: string;
97
+ name: string;
98
98
  description?: string | null | undefined;
99
+ event_type: string;
99
100
  event_filter?: {
100
101
  [x: string]: unknown;
101
102
  } | null | undefined;
102
- event_type: string;
103
- id: string;
103
+ action_id: string;
104
104
  input_template: {
105
105
  [x: string]: unknown;
106
106
  };
107
- is_active: boolean;
108
- name: string;
109
- next_fire_at?: string | null | undefined;
110
107
  schedule?: string | null | undefined;
111
108
  timezone: string;
109
+ next_fire_at?: string | null | undefined;
110
+ is_active: boolean;
111
+ created_by?: string | null | undefined;
112
+ created_at?: string | null | undefined;
112
113
  updated_at?: string | null | undefined;
113
- workspace_id: string;
114
114
  } & import("../index.js").ResponseMetadata>;
115
115
  delete(triggerId: string): Promise<void>;
116
116
  fire(triggerId: string): Promise<{
117
117
  fired_event_id: string;
118
- status?: "fired" | undefined;
119
118
  trigger_id: string;
119
+ status?: "fired" | undefined;
120
120
  } & import("../index.js").ResponseMetadata>;
121
121
  pause(triggerId: string): Promise<{
122
- action_id: string;
123
- created_at?: string | null | undefined;
124
- created_by?: string | null | undefined;
122
+ id: string;
123
+ workspace_id: string;
124
+ name: string;
125
125
  description?: string | null | undefined;
126
+ event_type: string;
126
127
  event_filter?: {
127
128
  [x: string]: unknown;
128
129
  } | null | undefined;
129
- event_type: string;
130
- id: string;
130
+ action_id: string;
131
131
  input_template: {
132
132
  [x: string]: unknown;
133
133
  };
134
- is_active: boolean;
135
- name: string;
136
- next_fire_at?: string | null | undefined;
137
134
  schedule?: string | null | undefined;
138
135
  timezone: string;
136
+ next_fire_at?: string | null | undefined;
137
+ is_active: boolean;
138
+ created_by?: string | null | undefined;
139
+ created_at?: string | null | undefined;
139
140
  updated_at?: string | null | undefined;
140
- workspace_id: string;
141
141
  } & import("../index.js").ResponseMetadata>;
142
142
  resume(triggerId: string): Promise<{
143
- action_id: string;
144
- created_at?: string | null | undefined;
145
- created_by?: string | null | undefined;
143
+ id: string;
144
+ workspace_id: string;
145
+ name: string;
146
146
  description?: string | null | undefined;
147
+ event_type: string;
147
148
  event_filter?: {
148
149
  [x: string]: unknown;
149
150
  } | null | undefined;
150
- event_type: string;
151
- id: string;
151
+ action_id: string;
152
152
  input_template: {
153
153
  [x: string]: unknown;
154
154
  };
155
- is_active: boolean;
156
- name: string;
157
- next_fire_at?: string | null | undefined;
158
155
  schedule?: string | null | undefined;
159
156
  timezone: string;
157
+ next_fire_at?: string | null | undefined;
158
+ is_active: boolean;
159
+ created_by?: string | null | undefined;
160
+ created_at?: string | null | undefined;
160
161
  updated_at?: string | null | undefined;
161
- workspace_id: string;
162
162
  } & import("../index.js").ResponseMetadata>;
163
163
  listRuns(triggerId: string, params?: ListParams): Promise<{
164
- continuation_token?: number | null | undefined;
165
- has_more: boolean;
166
164
  items: {
167
- created_at?: string | null | undefined;
165
+ event_id: string;
166
+ event_type: string;
168
167
  data: {
169
168
  [x: string]: unknown;
170
169
  };
171
170
  effective_at?: string | null | undefined;
172
- event_id: string;
173
- event_type: string;
171
+ created_at?: string | null | undefined;
174
172
  }[];
173
+ has_more: boolean;
174
+ continuation_token?: number | null | undefined;
175
175
  total?: number | null | undefined;
176
176
  } & import("../index.js").ResponseMetadata>;
177
177
  listRunsAutoPaging(triggerId: string, params?: ListParams): AsyncGenerator<{
178
- created_at?: string | null | undefined;
178
+ event_id: string;
179
+ event_type: string;
179
180
  data: {
180
181
  [x: string]: unknown;
181
182
  };
182
183
  effective_at?: string | null | undefined;
183
- event_id: string;
184
- event_type: string;
184
+ created_at?: string | null | undefined;
185
185
  }, any, any>;
186
186
  }
187
187
  //# sourceMappingURL=triggers.d.ts.map
@@ -3,123 +3,123 @@ 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 | undefined;
7
- has_more: boolean;
8
6
  items: {
9
- accepted_event_types: string[];
10
- created_at?: string | null | undefined;
11
- created_by: string | null;
7
+ id: string;
8
+ workspace_id: string;
9
+ name: string;
12
10
  description: string | null;
11
+ trigger_id: string;
12
+ url: string;
13
13
  field_mapping: {
14
14
  [x: string]: unknown;
15
15
  } | null;
16
- id: string;
17
- is_active: boolean;
18
- name: string;
16
+ accepted_event_types: string[];
19
17
  retry_attempts: number;
20
- trigger_id: string;
18
+ is_active: boolean;
19
+ created_by: string | null;
20
+ created_at?: string | null | undefined;
21
21
  updated_at?: string | null | undefined;
22
- url: string;
23
- workspace_id: string;
24
22
  }[];
23
+ has_more: boolean;
24
+ continuation_token?: number | null | undefined;
25
25
  total?: number | null | undefined;
26
26
  } & import("../index.js").ResponseMetadata>;
27
27
  listAutoPaging(params?: ListParams): AsyncGenerator<{
28
- accepted_event_types: string[];
29
- created_at?: string | null | undefined;
30
- created_by: string | null;
28
+ id: string;
29
+ workspace_id: string;
30
+ name: string;
31
31
  description: string | null;
32
+ trigger_id: string;
33
+ url: string;
32
34
  field_mapping: {
33
35
  [x: string]: unknown;
34
36
  } | null;
35
- id: string;
36
- is_active: boolean;
37
- name: string;
37
+ accepted_event_types: string[];
38
38
  retry_attempts: number;
39
- trigger_id: string;
39
+ is_active: boolean;
40
+ created_by: string | null;
41
+ created_at?: string | null | undefined;
40
42
  updated_at?: string | null | undefined;
41
- url: string;
42
- workspace_id: string;
43
43
  }, any, any>;
44
44
  create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
45
- accepted_event_types: string[];
46
- created_at?: string | null | undefined;
47
- created_by: string | null;
45
+ id: string;
46
+ workspace_id: string;
47
+ name: string;
48
48
  description: string | null;
49
+ trigger_id: string;
50
+ url: string;
49
51
  field_mapping: {
50
52
  [x: string]: unknown;
51
53
  } | null;
52
- id: string;
53
- is_active: boolean;
54
- name: string;
54
+ accepted_event_types: string[];
55
55
  retry_attempts: number;
56
- secret: string;
57
- trigger_id: string;
56
+ is_active: boolean;
57
+ created_by: string | null;
58
+ created_at?: string | null | undefined;
58
59
  updated_at?: string | null | undefined;
59
- url: string;
60
- workspace_id: string;
60
+ secret: string;
61
61
  } & import("../index.js").ResponseMetadata>;
62
62
  get(destinationId: string): Promise<{
63
- accepted_event_types: string[];
64
- created_at?: string | null | undefined;
65
- created_by: string | null;
63
+ id: string;
64
+ workspace_id: string;
65
+ name: string;
66
66
  description: string | null;
67
+ trigger_id: string;
68
+ url: string;
67
69
  field_mapping: {
68
70
  [x: string]: unknown;
69
71
  } | null;
70
- id: string;
71
- is_active: boolean;
72
- name: string;
72
+ accepted_event_types: string[];
73
73
  retry_attempts: number;
74
- trigger_id: string;
74
+ is_active: boolean;
75
+ created_by: string | null;
76
+ created_at?: string | null | undefined;
75
77
  updated_at?: string | null | undefined;
76
- url: string;
77
- workspace_id: string;
78
78
  } & import("../index.js").ResponseMetadata>;
79
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;
80
+ id: string;
81
+ workspace_id: string;
82
+ name: string;
83
83
  description: string | null;
84
+ trigger_id: string;
85
+ url: string;
84
86
  field_mapping: {
85
87
  [x: string]: unknown;
86
88
  } | null;
87
- id: string;
88
- is_active: boolean;
89
- name: string;
89
+ accepted_event_types: string[];
90
90
  retry_attempts: number;
91
- trigger_id: string;
91
+ is_active: boolean;
92
+ created_by: string | null;
93
+ created_at?: string | null | undefined;
92
94
  updated_at?: string | null | undefined;
93
- url: string;
94
- workspace_id: string;
95
95
  } & import("../index.js").ResponseMetadata>;
96
96
  delete(destinationId: string): Promise<void>;
97
97
  listDeliveries(destinationId: string, params?: ListParams): Promise<{
98
- continuation_token?: number | null | undefined;
99
- has_more: boolean;
100
98
  items: {
101
- created_at?: string | null | undefined;
99
+ event_id: string;
100
+ event_type: string;
102
101
  data: {
103
102
  [x: string]: unknown;
104
103
  };
105
104
  effective_at: string | null;
106
- event_id: string;
107
- event_type: string;
105
+ created_at?: string | null | undefined;
108
106
  }[];
107
+ has_more: boolean;
108
+ continuation_token?: number | null | undefined;
109
109
  total?: number | null | undefined;
110
110
  } & import("../index.js").ResponseMetadata>;
111
111
  listDeliveriesAutoPaging(destinationId: string, params?: ListParams): AsyncGenerator<{
112
- created_at?: string | null | undefined;
112
+ event_id: string;
113
+ event_type: string;
113
114
  data: {
114
115
  [x: string]: unknown;
115
116
  };
116
117
  effective_at: string | null;
117
- event_id: string;
118
- event_type: string;
118
+ created_at?: string | null | undefined;
119
119
  }, any, any>;
120
120
  rotateSecret(destinationId: string): Promise<{
121
- rotation_expires_at: string;
122
121
  secret: string;
122
+ rotation_expires_at: string;
123
123
  } & import("../index.js").ResponseMetadata>;
124
124
  }
125
125
  //# sourceMappingURL=webhook-destinations.d.ts.map
@@ -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;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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"}
@@ -12,84 +12,118 @@ import type { ListParams } from '../core/utils.js';
12
12
  export declare class WorkspacesResource extends WorkspaceScopedResource {
13
13
  /** Create a new workspace */
14
14
  create(body: components['schemas']['CreateWorkspaceRequest']): Promise<{
15
- backend_org_id: string | null;
16
- connector_type: string | null;
17
- created_at: string;
18
- environment: string;
19
15
  id: string;
16
+ slug: string;
20
17
  name: string;
21
- provisioned_at: string | null;
18
+ environment: string;
19
+ backend_org_id: string | null;
22
20
  region: string;
23
- slug: string;
21
+ connector_type: string | null;
22
+ provisioned_at: string | null;
23
+ created_at: string;
24
24
  updated_at: string;
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 | undefined;
29
- has_more: boolean;
30
28
  items: {
31
- backend_org_id: string | null;
32
- connector_type: string | null;
33
- created_at: string;
34
- environment: string;
35
29
  id: string;
30
+ slug: string;
36
31
  name: string;
37
- provisioned_at: string | null;
32
+ environment: string;
33
+ backend_org_id: string | null;
38
34
  region: string;
39
- slug: string;
35
+ connector_type: string | null;
36
+ provisioned_at: string | null;
37
+ created_at: string;
40
38
  updated_at: string;
41
39
  }[];
40
+ has_more: boolean;
41
+ continuation_token?: number | null | undefined;
42
42
  total?: number | null | undefined;
43
43
  } & import("../index.js").ResponseMetadata>;
44
44
  listAutoPaging(params?: ListParams): AsyncGenerator<{
45
- backend_org_id: string | null;
46
- connector_type: string | null;
47
- created_at: string;
48
- environment: string;
49
45
  id: string;
46
+ slug: string;
50
47
  name: string;
51
- provisioned_at: string | null;
48
+ environment: string;
49
+ backend_org_id: string | null;
52
50
  region: string;
53
- slug: string;
51
+ connector_type: string | null;
52
+ provisioned_at: string | null;
53
+ created_at: string;
54
54
  updated_at: string;
55
55
  }, any, any>;
56
56
  /** Get a single workspace by ID */
57
57
  get(id?: WorkspaceId | string): Promise<{
58
- backend_org_id: string | null;
59
- connector_type: string | null;
60
- created_at: string;
61
- environment: string;
62
58
  id: string;
59
+ slug: string;
63
60
  name: string;
64
- provisioned_at: string | null;
61
+ environment: string;
62
+ backend_org_id: string | null;
65
63
  region: string;
66
- slug: string;
64
+ connector_type: string | null;
65
+ provisioned_at: string | null;
66
+ created_at: string;
67
67
  updated_at: string;
68
68
  } & import("../index.js").ResponseMetadata>;
69
69
  /** Update workspace metadata */
70
70
  update(body: components['schemas']['UpdateWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
71
- backend_org_id: string | null;
72
- connector_type: string | null;
73
- created_at: string;
74
- environment: string;
75
71
  id: string;
72
+ slug: string;
76
73
  name: string;
77
- provisioned_at: string | null;
74
+ environment: string;
75
+ backend_org_id: string | null;
78
76
  region: string;
79
- slug: string;
77
+ connector_type: string | null;
78
+ provisioned_at: string | null;
79
+ created_at: string;
80
80
  updated_at: string;
81
81
  } & import("../index.js").ResponseMetadata>;
82
82
  /** Archive (soft-delete) a workspace */
83
83
  archive(body: components['schemas']['ArchiveWorkspaceRequest'], id?: WorkspaceId | string): Promise<{
84
+ id: string;
85
+ slug: string;
86
+ name: string;
87
+ environment: string;
84
88
  backend_org_id: string | null;
89
+ region: string;
85
90
  connector_type: string | null;
91
+ provisioned_at: string | null;
86
92
  created_at: string;
87
- environment: string;
93
+ updated_at: string;
94
+ } & import("../index.js").ResponseMetadata>;
95
+ /** Provision a workspace (seed integrations, mark as provisioned) */
96
+ provision(id?: WorkspaceId | string): Promise<{
97
+ workspace: {
98
+ id: string;
99
+ slug: string;
100
+ name: string;
101
+ environment: string;
102
+ backend_org_id: string | null;
103
+ region: string;
104
+ connector_type: string | null;
105
+ provisioned_at: string | null;
106
+ created_at: string;
107
+ updated_at: string;
108
+ };
109
+ } & import("../index.js").ResponseMetadata>;
110
+ /** Pre-check environment conversion warnings */
111
+ checkEnvironment(target?: 'production' | 'staging', id?: WorkspaceId | string): Promise<{
112
+ current: string;
113
+ target: string;
114
+ warnings: string[];
115
+ } & import("../index.js").ResponseMetadata>;
116
+ /** Convert workspace between staging and production */
117
+ convertEnvironment(body: components['schemas']['ConvertEnvironmentRequest'], id?: WorkspaceId | string): Promise<{
88
118
  id: string;
119
+ slug: string;
89
120
  name: string;
90
- provisioned_at: string | null;
121
+ environment: string;
122
+ backend_org_id: string | null;
91
123
  region: string;
92
- slug: string;
124
+ connector_type: string | null;
125
+ provisioned_at: string | null;
126
+ created_at: string;
93
127
  updated_at: string;
94
128
  } & import("../index.js").ResponseMetadata>;
95
129
  }
@@ -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,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