telnyx 6.48.0 → 6.49.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 (84) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/assistants/assistants.d.mts +2 -2
  12. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  13. package/resources/ai/assistants/assistants.d.ts +2 -2
  14. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  15. package/resources/ai/assistants/assistants.js.map +1 -1
  16. package/resources/ai/assistants/assistants.mjs.map +1 -1
  17. package/resources/ai/assistants/canary-deploys.d.mts +246 -30
  18. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  19. package/resources/ai/assistants/canary-deploys.d.ts +246 -30
  20. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  21. package/resources/ai/assistants/canary-deploys.js +0 -10
  22. package/resources/ai/assistants/canary-deploys.js.map +1 -1
  23. package/resources/ai/assistants/canary-deploys.mjs +0 -10
  24. package/resources/ai/assistants/canary-deploys.mjs.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +1 -1
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +1 -1
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/index.d.mts +1 -0
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +1 -0
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +4 -2
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/uac-connections/actions.d.mts +65 -0
  40. package/resources/uac-connections/actions.d.mts.map +1 -0
  41. package/resources/uac-connections/actions.d.ts +65 -0
  42. package/resources/uac-connections/actions.d.ts.map +1 -0
  43. package/resources/uac-connections/actions.js +29 -0
  44. package/resources/uac-connections/actions.js.map +1 -0
  45. package/resources/uac-connections/actions.mjs +25 -0
  46. package/resources/uac-connections/actions.mjs.map +1 -0
  47. package/resources/uac-connections/index.d.mts +3 -0
  48. package/resources/uac-connections/index.d.mts.map +1 -0
  49. package/resources/uac-connections/index.d.ts +3 -0
  50. package/resources/uac-connections/index.d.ts.map +1 -0
  51. package/resources/uac-connections/index.js +9 -0
  52. package/resources/uac-connections/index.js.map +1 -0
  53. package/resources/uac-connections/index.mjs +4 -0
  54. package/resources/uac-connections/index.mjs.map +1 -0
  55. package/resources/uac-connections/uac-connections.d.mts +2588 -0
  56. package/resources/uac-connections/uac-connections.d.mts.map +1 -0
  57. package/resources/uac-connections/uac-connections.d.ts +2588 -0
  58. package/resources/uac-connections/uac-connections.d.ts.map +1 -0
  59. package/resources/uac-connections/uac-connections.js +97 -0
  60. package/resources/uac-connections/uac-connections.js.map +1 -0
  61. package/resources/uac-connections/uac-connections.mjs +92 -0
  62. package/resources/uac-connections/uac-connections.mjs.map +1 -0
  63. package/resources/uac-connections.d.mts +2 -0
  64. package/resources/uac-connections.d.mts.map +1 -0
  65. package/resources/uac-connections.d.ts +2 -0
  66. package/resources/uac-connections.d.ts.map +1 -0
  67. package/resources/uac-connections.js +6 -0
  68. package/resources/uac-connections.js.map +1 -0
  69. package/resources/uac-connections.mjs +3 -0
  70. package/resources/uac-connections.mjs.map +1 -0
  71. package/src/client.ts +30 -0
  72. package/src/resources/ai/assistants/assistants.ts +0 -2
  73. package/src/resources/ai/assistants/canary-deploys.ts +280 -31
  74. package/src/resources/ai/assistants/index.ts +0 -1
  75. package/src/resources/index.ts +12 -0
  76. package/src/resources/uac-connections/actions.ts +83 -0
  77. package/src/resources/uac-connections/index.ts +15 -0
  78. package/src/resources/uac-connections/uac-connections.ts +3153 -0
  79. package/src/resources/uac-connections.ts +3 -0
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
@@ -16,11 +16,6 @@ export declare class CanaryDeploys extends APIResource {
16
16
  * const canaryDeployResponse =
17
17
  * await client.ai.assistants.canaryDeploys.create(
18
18
  * 'assistant_id',
19
- * {
20
- * versions: [
21
- * { percentage: 1, version_id: 'version_id' },
22
- * ],
23
- * },
24
19
  * );
25
20
  * ```
26
21
  */
@@ -52,11 +47,6 @@ export declare class CanaryDeploys extends APIResource {
52
47
  * const canaryDeployResponse =
53
48
  * await client.ai.assistants.canaryDeploys.update(
54
49
  * 'assistant_id',
55
- * {
56
- * versions: [
57
- * { percentage: 1, version_id: 'version_id' },
58
- * ],
59
- * },
60
50
  * );
61
51
  * ```
62
52
  */
@@ -76,49 +66,275 @@ export declare class CanaryDeploys extends APIResource {
76
66
  delete(assistantID: string, options?: RequestOptions): APIPromise<void>;
77
67
  }
78
68
  /**
79
- * Request model for creating or updating canary deploys.
69
+ * Create/update request body. Accepts:
70
+ *
71
+ * - `rules` — canonical ordered list of routing rules
80
72
  */
81
73
  export interface CanaryDeploy {
74
+ rules?: Array<CanaryDeploy.Rule>;
75
+ }
76
+ export declare namespace CanaryDeploy {
82
77
  /**
83
- * List of version configurations
78
+ * A targeting rule: `match` clauses (AND) gate `serve`.
79
+ *
80
+ * An empty `match` is a catch-all (always fires).
84
81
  */
85
- versions: Array<VersionConfig>;
82
+ interface Rule {
83
+ /**
84
+ * What a rule serves when matched.
85
+ *
86
+ * Exactly one of:
87
+ *
88
+ * - `version_id` — serve a specific version
89
+ * - `rollout` — weighted random across versions; weights must sum to less than
90
+ * 100, with the leftover routing to the main version
91
+ */
92
+ serve: Rule.Serve;
93
+ match?: Array<Rule.Match>;
94
+ }
95
+ namespace Rule {
96
+ /**
97
+ * What a rule serves when matched.
98
+ *
99
+ * Exactly one of:
100
+ *
101
+ * - `version_id` — serve a specific version
102
+ * - `rollout` — weighted random across versions; weights must sum to less than
103
+ * 100, with the leftover routing to the main version
104
+ */
105
+ interface Serve {
106
+ rollout?: Array<Serve.Rollout>;
107
+ version_id?: string;
108
+ }
109
+ namespace Serve {
110
+ /**
111
+ * One slot in a percentage rollout.
112
+ */
113
+ interface Rollout {
114
+ version_id: string;
115
+ weight: number;
116
+ }
117
+ }
118
+ /**
119
+ * A single attribute/operator/values check.
120
+ *
121
+ * A clause matches when the routing context's value for `attribute` satisfies
122
+ * `operator` against any of `values`.
123
+ */
124
+ interface Match {
125
+ /**
126
+ * Attribute name from the routing context
127
+ */
128
+ attribute: string;
129
+ /**
130
+ * Match operator
131
+ */
132
+ operator: 'in' | 'not_in' | 'starts_with';
133
+ values: Array<string>;
134
+ }
135
+ }
86
136
  }
87
137
  /**
88
- * Response model for canary deploy operations.
138
+ * Response shape.
139
+ *
140
+ * Always carries `rules` (canonical).
89
141
  */
90
142
  export interface CanaryDeployResponse {
91
143
  assistant_id: string;
92
144
  created_at: string;
145
+ rules: Array<CanaryDeployResponse.Rule>;
93
146
  updated_at: string;
94
- versions: Array<VersionConfig>;
95
147
  }
96
- /**
97
- * Configuration for a single version in canary deploy.
98
- */
99
- export interface VersionConfig {
100
- /**
101
- * Percentage of traffic for this version [1-99]
102
- */
103
- percentage: number;
148
+ export declare namespace CanaryDeployResponse {
104
149
  /**
105
- * Version ID string that references assistant_versions.version_id
150
+ * A targeting rule: `match` clauses (AND) gate `serve`.
151
+ *
152
+ * An empty `match` is a catch-all (always fires).
106
153
  */
107
- version_id: string;
154
+ interface Rule {
155
+ /**
156
+ * What a rule serves when matched.
157
+ *
158
+ * Exactly one of:
159
+ *
160
+ * - `version_id` — serve a specific version
161
+ * - `rollout` — weighted random across versions; weights must sum to less than
162
+ * 100, with the leftover routing to the main version
163
+ */
164
+ serve: Rule.Serve;
165
+ match?: Array<Rule.Match>;
166
+ }
167
+ namespace Rule {
168
+ /**
169
+ * What a rule serves when matched.
170
+ *
171
+ * Exactly one of:
172
+ *
173
+ * - `version_id` — serve a specific version
174
+ * - `rollout` — weighted random across versions; weights must sum to less than
175
+ * 100, with the leftover routing to the main version
176
+ */
177
+ interface Serve {
178
+ rollout?: Array<Serve.Rollout>;
179
+ version_id?: string;
180
+ }
181
+ namespace Serve {
182
+ /**
183
+ * One slot in a percentage rollout.
184
+ */
185
+ interface Rollout {
186
+ version_id: string;
187
+ weight: number;
188
+ }
189
+ }
190
+ /**
191
+ * A single attribute/operator/values check.
192
+ *
193
+ * A clause matches when the routing context's value for `attribute` satisfies
194
+ * `operator` against any of `values`.
195
+ */
196
+ interface Match {
197
+ /**
198
+ * Attribute name from the routing context
199
+ */
200
+ attribute: string;
201
+ /**
202
+ * Match operator
203
+ */
204
+ operator: 'in' | 'not_in' | 'starts_with';
205
+ values: Array<string>;
206
+ }
207
+ }
108
208
  }
109
209
  export interface CanaryDeployCreateParams {
210
+ rules?: Array<CanaryDeployCreateParams.Rule>;
211
+ }
212
+ export declare namespace CanaryDeployCreateParams {
110
213
  /**
111
- * List of version configurations
214
+ * A targeting rule: `match` clauses (AND) gate `serve`.
215
+ *
216
+ * An empty `match` is a catch-all (always fires).
112
217
  */
113
- versions: Array<VersionConfig>;
218
+ interface Rule {
219
+ /**
220
+ * What a rule serves when matched.
221
+ *
222
+ * Exactly one of:
223
+ *
224
+ * - `version_id` — serve a specific version
225
+ * - `rollout` — weighted random across versions; weights must sum to less than
226
+ * 100, with the leftover routing to the main version
227
+ */
228
+ serve: Rule.Serve;
229
+ match?: Array<Rule.Match>;
230
+ }
231
+ namespace Rule {
232
+ /**
233
+ * What a rule serves when matched.
234
+ *
235
+ * Exactly one of:
236
+ *
237
+ * - `version_id` — serve a specific version
238
+ * - `rollout` — weighted random across versions; weights must sum to less than
239
+ * 100, with the leftover routing to the main version
240
+ */
241
+ interface Serve {
242
+ rollout?: Array<Serve.Rollout>;
243
+ version_id?: string;
244
+ }
245
+ namespace Serve {
246
+ /**
247
+ * One slot in a percentage rollout.
248
+ */
249
+ interface Rollout {
250
+ version_id: string;
251
+ weight: number;
252
+ }
253
+ }
254
+ /**
255
+ * A single attribute/operator/values check.
256
+ *
257
+ * A clause matches when the routing context's value for `attribute` satisfies
258
+ * `operator` against any of `values`.
259
+ */
260
+ interface Match {
261
+ /**
262
+ * Attribute name from the routing context
263
+ */
264
+ attribute: string;
265
+ /**
266
+ * Match operator
267
+ */
268
+ operator: 'in' | 'not_in' | 'starts_with';
269
+ values: Array<string>;
270
+ }
271
+ }
114
272
  }
115
273
  export interface CanaryDeployUpdateParams {
274
+ rules?: Array<CanaryDeployUpdateParams.Rule>;
275
+ }
276
+ export declare namespace CanaryDeployUpdateParams {
116
277
  /**
117
- * List of version configurations
278
+ * A targeting rule: `match` clauses (AND) gate `serve`.
279
+ *
280
+ * An empty `match` is a catch-all (always fires).
118
281
  */
119
- versions: Array<VersionConfig>;
282
+ interface Rule {
283
+ /**
284
+ * What a rule serves when matched.
285
+ *
286
+ * Exactly one of:
287
+ *
288
+ * - `version_id` — serve a specific version
289
+ * - `rollout` — weighted random across versions; weights must sum to less than
290
+ * 100, with the leftover routing to the main version
291
+ */
292
+ serve: Rule.Serve;
293
+ match?: Array<Rule.Match>;
294
+ }
295
+ namespace Rule {
296
+ /**
297
+ * What a rule serves when matched.
298
+ *
299
+ * Exactly one of:
300
+ *
301
+ * - `version_id` — serve a specific version
302
+ * - `rollout` — weighted random across versions; weights must sum to less than
303
+ * 100, with the leftover routing to the main version
304
+ */
305
+ interface Serve {
306
+ rollout?: Array<Serve.Rollout>;
307
+ version_id?: string;
308
+ }
309
+ namespace Serve {
310
+ /**
311
+ * One slot in a percentage rollout.
312
+ */
313
+ interface Rollout {
314
+ version_id: string;
315
+ weight: number;
316
+ }
317
+ }
318
+ /**
319
+ * A single attribute/operator/values check.
320
+ *
321
+ * A clause matches when the routing context's value for `attribute` satisfies
322
+ * `operator` against any of `values`.
323
+ */
324
+ interface Match {
325
+ /**
326
+ * Attribute name from the routing context
327
+ */
328
+ attribute: string;
329
+ /**
330
+ * Match operator
331
+ */
332
+ operator: 'in' | 'not_in' | 'starts_with';
333
+ values: Array<string>;
334
+ }
335
+ }
120
336
  }
121
337
  export declare namespace CanaryDeploys {
122
- export { type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type VersionConfig as VersionConfig, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
338
+ export { type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
123
339
  }
124
340
  //# sourceMappingURL=canary-deploys.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"canary-deploys.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/canary-deploys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIzF;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"canary-deploys.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/canary-deploys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,wBAAwB,EAC9B,OAAO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IAAI,GAAG,QAAQ,GAAG,aAAa,CAAC;YAE1C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -16,11 +16,6 @@ export declare class CanaryDeploys extends APIResource {
16
16
  * const canaryDeployResponse =
17
17
  * await client.ai.assistants.canaryDeploys.create(
18
18
  * 'assistant_id',
19
- * {
20
- * versions: [
21
- * { percentage: 1, version_id: 'version_id' },
22
- * ],
23
- * },
24
19
  * );
25
20
  * ```
26
21
  */
@@ -52,11 +47,6 @@ export declare class CanaryDeploys extends APIResource {
52
47
  * const canaryDeployResponse =
53
48
  * await client.ai.assistants.canaryDeploys.update(
54
49
  * 'assistant_id',
55
- * {
56
- * versions: [
57
- * { percentage: 1, version_id: 'version_id' },
58
- * ],
59
- * },
60
50
  * );
61
51
  * ```
62
52
  */
@@ -76,49 +66,275 @@ export declare class CanaryDeploys extends APIResource {
76
66
  delete(assistantID: string, options?: RequestOptions): APIPromise<void>;
77
67
  }
78
68
  /**
79
- * Request model for creating or updating canary deploys.
69
+ * Create/update request body. Accepts:
70
+ *
71
+ * - `rules` — canonical ordered list of routing rules
80
72
  */
81
73
  export interface CanaryDeploy {
74
+ rules?: Array<CanaryDeploy.Rule>;
75
+ }
76
+ export declare namespace CanaryDeploy {
82
77
  /**
83
- * List of version configurations
78
+ * A targeting rule: `match` clauses (AND) gate `serve`.
79
+ *
80
+ * An empty `match` is a catch-all (always fires).
84
81
  */
85
- versions: Array<VersionConfig>;
82
+ interface Rule {
83
+ /**
84
+ * What a rule serves when matched.
85
+ *
86
+ * Exactly one of:
87
+ *
88
+ * - `version_id` — serve a specific version
89
+ * - `rollout` — weighted random across versions; weights must sum to less than
90
+ * 100, with the leftover routing to the main version
91
+ */
92
+ serve: Rule.Serve;
93
+ match?: Array<Rule.Match>;
94
+ }
95
+ namespace Rule {
96
+ /**
97
+ * What a rule serves when matched.
98
+ *
99
+ * Exactly one of:
100
+ *
101
+ * - `version_id` — serve a specific version
102
+ * - `rollout` — weighted random across versions; weights must sum to less than
103
+ * 100, with the leftover routing to the main version
104
+ */
105
+ interface Serve {
106
+ rollout?: Array<Serve.Rollout>;
107
+ version_id?: string;
108
+ }
109
+ namespace Serve {
110
+ /**
111
+ * One slot in a percentage rollout.
112
+ */
113
+ interface Rollout {
114
+ version_id: string;
115
+ weight: number;
116
+ }
117
+ }
118
+ /**
119
+ * A single attribute/operator/values check.
120
+ *
121
+ * A clause matches when the routing context's value for `attribute` satisfies
122
+ * `operator` against any of `values`.
123
+ */
124
+ interface Match {
125
+ /**
126
+ * Attribute name from the routing context
127
+ */
128
+ attribute: string;
129
+ /**
130
+ * Match operator
131
+ */
132
+ operator: 'in' | 'not_in' | 'starts_with';
133
+ values: Array<string>;
134
+ }
135
+ }
86
136
  }
87
137
  /**
88
- * Response model for canary deploy operations.
138
+ * Response shape.
139
+ *
140
+ * Always carries `rules` (canonical).
89
141
  */
90
142
  export interface CanaryDeployResponse {
91
143
  assistant_id: string;
92
144
  created_at: string;
145
+ rules: Array<CanaryDeployResponse.Rule>;
93
146
  updated_at: string;
94
- versions: Array<VersionConfig>;
95
147
  }
96
- /**
97
- * Configuration for a single version in canary deploy.
98
- */
99
- export interface VersionConfig {
100
- /**
101
- * Percentage of traffic for this version [1-99]
102
- */
103
- percentage: number;
148
+ export declare namespace CanaryDeployResponse {
104
149
  /**
105
- * Version ID string that references assistant_versions.version_id
150
+ * A targeting rule: `match` clauses (AND) gate `serve`.
151
+ *
152
+ * An empty `match` is a catch-all (always fires).
106
153
  */
107
- version_id: string;
154
+ interface Rule {
155
+ /**
156
+ * What a rule serves when matched.
157
+ *
158
+ * Exactly one of:
159
+ *
160
+ * - `version_id` — serve a specific version
161
+ * - `rollout` — weighted random across versions; weights must sum to less than
162
+ * 100, with the leftover routing to the main version
163
+ */
164
+ serve: Rule.Serve;
165
+ match?: Array<Rule.Match>;
166
+ }
167
+ namespace Rule {
168
+ /**
169
+ * What a rule serves when matched.
170
+ *
171
+ * Exactly one of:
172
+ *
173
+ * - `version_id` — serve a specific version
174
+ * - `rollout` — weighted random across versions; weights must sum to less than
175
+ * 100, with the leftover routing to the main version
176
+ */
177
+ interface Serve {
178
+ rollout?: Array<Serve.Rollout>;
179
+ version_id?: string;
180
+ }
181
+ namespace Serve {
182
+ /**
183
+ * One slot in a percentage rollout.
184
+ */
185
+ interface Rollout {
186
+ version_id: string;
187
+ weight: number;
188
+ }
189
+ }
190
+ /**
191
+ * A single attribute/operator/values check.
192
+ *
193
+ * A clause matches when the routing context's value for `attribute` satisfies
194
+ * `operator` against any of `values`.
195
+ */
196
+ interface Match {
197
+ /**
198
+ * Attribute name from the routing context
199
+ */
200
+ attribute: string;
201
+ /**
202
+ * Match operator
203
+ */
204
+ operator: 'in' | 'not_in' | 'starts_with';
205
+ values: Array<string>;
206
+ }
207
+ }
108
208
  }
109
209
  export interface CanaryDeployCreateParams {
210
+ rules?: Array<CanaryDeployCreateParams.Rule>;
211
+ }
212
+ export declare namespace CanaryDeployCreateParams {
110
213
  /**
111
- * List of version configurations
214
+ * A targeting rule: `match` clauses (AND) gate `serve`.
215
+ *
216
+ * An empty `match` is a catch-all (always fires).
112
217
  */
113
- versions: Array<VersionConfig>;
218
+ interface Rule {
219
+ /**
220
+ * What a rule serves when matched.
221
+ *
222
+ * Exactly one of:
223
+ *
224
+ * - `version_id` — serve a specific version
225
+ * - `rollout` — weighted random across versions; weights must sum to less than
226
+ * 100, with the leftover routing to the main version
227
+ */
228
+ serve: Rule.Serve;
229
+ match?: Array<Rule.Match>;
230
+ }
231
+ namespace Rule {
232
+ /**
233
+ * What a rule serves when matched.
234
+ *
235
+ * Exactly one of:
236
+ *
237
+ * - `version_id` — serve a specific version
238
+ * - `rollout` — weighted random across versions; weights must sum to less than
239
+ * 100, with the leftover routing to the main version
240
+ */
241
+ interface Serve {
242
+ rollout?: Array<Serve.Rollout>;
243
+ version_id?: string;
244
+ }
245
+ namespace Serve {
246
+ /**
247
+ * One slot in a percentage rollout.
248
+ */
249
+ interface Rollout {
250
+ version_id: string;
251
+ weight: number;
252
+ }
253
+ }
254
+ /**
255
+ * A single attribute/operator/values check.
256
+ *
257
+ * A clause matches when the routing context's value for `attribute` satisfies
258
+ * `operator` against any of `values`.
259
+ */
260
+ interface Match {
261
+ /**
262
+ * Attribute name from the routing context
263
+ */
264
+ attribute: string;
265
+ /**
266
+ * Match operator
267
+ */
268
+ operator: 'in' | 'not_in' | 'starts_with';
269
+ values: Array<string>;
270
+ }
271
+ }
114
272
  }
115
273
  export interface CanaryDeployUpdateParams {
274
+ rules?: Array<CanaryDeployUpdateParams.Rule>;
275
+ }
276
+ export declare namespace CanaryDeployUpdateParams {
116
277
  /**
117
- * List of version configurations
278
+ * A targeting rule: `match` clauses (AND) gate `serve`.
279
+ *
280
+ * An empty `match` is a catch-all (always fires).
118
281
  */
119
- versions: Array<VersionConfig>;
282
+ interface Rule {
283
+ /**
284
+ * What a rule serves when matched.
285
+ *
286
+ * Exactly one of:
287
+ *
288
+ * - `version_id` — serve a specific version
289
+ * - `rollout` — weighted random across versions; weights must sum to less than
290
+ * 100, with the leftover routing to the main version
291
+ */
292
+ serve: Rule.Serve;
293
+ match?: Array<Rule.Match>;
294
+ }
295
+ namespace Rule {
296
+ /**
297
+ * What a rule serves when matched.
298
+ *
299
+ * Exactly one of:
300
+ *
301
+ * - `version_id` — serve a specific version
302
+ * - `rollout` — weighted random across versions; weights must sum to less than
303
+ * 100, with the leftover routing to the main version
304
+ */
305
+ interface Serve {
306
+ rollout?: Array<Serve.Rollout>;
307
+ version_id?: string;
308
+ }
309
+ namespace Serve {
310
+ /**
311
+ * One slot in a percentage rollout.
312
+ */
313
+ interface Rollout {
314
+ version_id: string;
315
+ weight: number;
316
+ }
317
+ }
318
+ /**
319
+ * A single attribute/operator/values check.
320
+ *
321
+ * A clause matches when the routing context's value for `attribute` satisfies
322
+ * `operator` against any of `values`.
323
+ */
324
+ interface Match {
325
+ /**
326
+ * Attribute name from the routing context
327
+ */
328
+ attribute: string;
329
+ /**
330
+ * Match operator
331
+ */
332
+ operator: 'in' | 'not_in' | 'starts_with';
333
+ values: Array<string>;
334
+ }
335
+ }
120
336
  }
121
337
  export declare namespace CanaryDeploys {
122
- export { type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type VersionConfig as VersionConfig, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
338
+ export { type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
123
339
  }
124
340
  //# sourceMappingURL=canary-deploys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"canary-deploys.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/canary-deploys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIzF;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"canary-deploys.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/canary-deploys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qB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,CAAC;aAChB;SACF;QAED;;;;;WAKG;QACH,UAAiB,KAAK;YACpB;;eAEG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,aAAa,CAAC;YAE1C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -20,11 +20,6 @@ class CanaryDeploys extends resource_1.APIResource {
20
20
  * const canaryDeployResponse =
21
21
  * await client.ai.assistants.canaryDeploys.create(
22
22
  * 'assistant_id',
23
- * {
24
- * versions: [
25
- * { percentage: 1, version_id: 'version_id' },
26
- * ],
27
- * },
28
23
  * );
29
24
  * ```
30
25
  */
@@ -60,11 +55,6 @@ class CanaryDeploys extends resource_1.APIResource {
60
55
  * const canaryDeployResponse =
61
56
  * await client.ai.assistants.canaryDeploys.update(
62
57
  * 'assistant_id',
63
- * {
64
- * versions: [
65
- * { percentage: 1, version_id: 'version_id' },
66
- * ],
67
- * },
68
58
  * );
69
59
  * ```
70
60
  */