@discomedia/utils 1.0.76 → 1.0.77
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/dist/index-frontend.cjs +43 -2
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +43 -2
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +43 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +43 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +3 -3
- package/dist/test.js +43 -2
- package/dist/test.js.map +1 -1
- package/package.json +3 -3
package/dist/index-frontend.cjs
CHANGED
|
@@ -348,7 +348,7 @@ const safeJSON = (text) => {
|
|
|
348
348
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
349
349
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
350
350
|
|
|
351
|
-
const VERSION = '6.
|
|
351
|
+
const VERSION = '6.44.0'; // x-release-please-version
|
|
352
352
|
|
|
353
353
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
354
354
|
const isRunningInBrowser = () => {
|
|
@@ -2734,7 +2734,12 @@ _AbstractChatCompletionRunner_instances = new WeakSet(), _AbstractChatCompletion
|
|
|
2734
2734
|
for (let i = this.messages.length - 1; i >= 0; i--) {
|
|
2735
2735
|
const message = this.messages[i];
|
|
2736
2736
|
if (isAssistantMessage(message) && message?.tool_calls?.length) {
|
|
2737
|
-
|
|
2737
|
+
for (let j = message.tool_calls.length - 1; j >= 0; j--) {
|
|
2738
|
+
const toolCall = message.tool_calls[j];
|
|
2739
|
+
if (toolCall?.type === 'function') {
|
|
2740
|
+
return toolCall.function;
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2738
2743
|
}
|
|
2739
2744
|
}
|
|
2740
2745
|
return;
|
|
@@ -4112,6 +4117,23 @@ let SpendAlerts$1 = class SpendAlerts extends APIResource {
|
|
|
4112
4117
|
__security: { adminAPIKeyAuth: true },
|
|
4113
4118
|
});
|
|
4114
4119
|
}
|
|
4120
|
+
/**
|
|
4121
|
+
* Retrieves an organization spend alert.
|
|
4122
|
+
*
|
|
4123
|
+
* @example
|
|
4124
|
+
* ```ts
|
|
4125
|
+
* const organizationSpendAlert =
|
|
4126
|
+
* await client.admin.organization.spendAlerts.retrieve(
|
|
4127
|
+
* 'alert_id',
|
|
4128
|
+
* );
|
|
4129
|
+
* ```
|
|
4130
|
+
*/
|
|
4131
|
+
retrieve(alertID, options) {
|
|
4132
|
+
return this._client.get(path `/organization/spend_alerts/${alertID}`, {
|
|
4133
|
+
...options,
|
|
4134
|
+
__security: { adminAPIKeyAuth: true },
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4115
4137
|
/**
|
|
4116
4138
|
* Updates an organization spend alert.
|
|
4117
4139
|
*
|
|
@@ -5143,6 +5165,25 @@ class SpendAlerts extends APIResource {
|
|
|
5143
5165
|
__security: { adminAPIKeyAuth: true },
|
|
5144
5166
|
});
|
|
5145
5167
|
}
|
|
5168
|
+
/**
|
|
5169
|
+
* Retrieves a project spend alert.
|
|
5170
|
+
*
|
|
5171
|
+
* @example
|
|
5172
|
+
* ```ts
|
|
5173
|
+
* const projectSpendAlert =
|
|
5174
|
+
* await client.admin.organization.projects.spendAlerts.retrieve(
|
|
5175
|
+
* 'alert_id',
|
|
5176
|
+
* { project_id: 'project_id' },
|
|
5177
|
+
* );
|
|
5178
|
+
* ```
|
|
5179
|
+
*/
|
|
5180
|
+
retrieve(alertID, params, options) {
|
|
5181
|
+
const { project_id } = params;
|
|
5182
|
+
return this._client.get(path `/organization/projects/${project_id}/spend_alerts/${alertID}`, {
|
|
5183
|
+
...options,
|
|
5184
|
+
__security: { adminAPIKeyAuth: true },
|
|
5185
|
+
});
|
|
5186
|
+
}
|
|
5146
5187
|
/**
|
|
5147
5188
|
* Updates a project spend alert.
|
|
5148
5189
|
*
|