glitch-javascript-sdk 3.2.12 → 3.2.13
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/cjs/index.js +4 -4
- package/dist/esm/api/Agents.d.ts +4 -4
- package/dist/esm/index.js +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/api/Agents.ts +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -31147,7 +31147,7 @@ var Agents = /** @class */ (function () {
|
|
|
31147
31147
|
return Requests.processRoute(AgentsRoute.routes.listAgents, {}, { title_id: title_id }, params);
|
|
31148
31148
|
};
|
|
31149
31149
|
/**
|
|
31150
|
-
* Create an agent before payment. Runs/results remain gated until
|
|
31150
|
+
* Create an agent before payment. Runs/results remain gated until subscription or prepaid credits.
|
|
31151
31151
|
*/
|
|
31152
31152
|
Agents.createAgent = function (title_id, data, params) {
|
|
31153
31153
|
return Requests.processRoute(AgentsRoute.routes.createAgent, data, { title_id: title_id }, params);
|
|
@@ -31171,7 +31171,7 @@ var Agents = /** @class */ (function () {
|
|
|
31171
31171
|
return Requests.processRoute(AgentsRoute.routes.deleteAgent, {}, { title_id: title_id, agent_id: agent_id }, params);
|
|
31172
31172
|
};
|
|
31173
31173
|
/**
|
|
31174
|
-
* Run an agent planning cycle. Returns 402 when
|
|
31174
|
+
* Run an agent planning cycle. Returns 402 when subscription or prepaid credits are required.
|
|
31175
31175
|
*/
|
|
31176
31176
|
Agents.runAgent = function (title_id, agent_id, data, params) {
|
|
31177
31177
|
return Requests.processRoute(AgentsRoute.routes.runAgent, data, { title_id: title_id, agent_id: agent_id }, params);
|
|
@@ -31277,7 +31277,7 @@ var Agents = /** @class */ (function () {
|
|
|
31277
31277
|
return Requests.processRoute(AgentsRoute.routes.listMemories, {}, { title_id: title_id }, params);
|
|
31278
31278
|
};
|
|
31279
31279
|
/**
|
|
31280
|
-
* Get results and outcome summary for title agents. Returns 402 until
|
|
31280
|
+
* Get results and outcome summary for title agents. Returns 402 until subscription or prepaid credits are active.
|
|
31281
31281
|
*/
|
|
31282
31282
|
Agents.results = function (title_id, params) {
|
|
31283
31283
|
return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id: title_id }, params);
|
|
@@ -31303,7 +31303,7 @@ var Agents = /** @class */ (function () {
|
|
|
31303
31303
|
return Requests.processRoute(AgentsRoute.routes.purchaseCredits, data, { title_id: title_id }, params);
|
|
31304
31304
|
};
|
|
31305
31305
|
/**
|
|
31306
|
-
* Start a Stripe-backed agent
|
|
31306
|
+
* Start a Stripe-backed agent subscription after setup.
|
|
31307
31307
|
*/
|
|
31308
31308
|
Agents.startTrial = function (title_id, data, params) {
|
|
31309
31309
|
return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
|
package/dist/esm/api/Agents.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare class Agents {
|
|
|
29
29
|
*/
|
|
30
30
|
static listAgents<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
31
31
|
/**
|
|
32
|
-
* Create an agent before payment. Runs/results remain gated until
|
|
32
|
+
* Create an agent before payment. Runs/results remain gated until subscription or prepaid credits.
|
|
33
33
|
*/
|
|
34
34
|
static createAgent<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
35
35
|
/**
|
|
@@ -45,7 +45,7 @@ declare class Agents {
|
|
|
45
45
|
*/
|
|
46
46
|
static deleteAgent<T>(title_id: string, agent_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
47
47
|
/**
|
|
48
|
-
* Run an agent planning cycle. Returns 402 when
|
|
48
|
+
* Run an agent planning cycle. Returns 402 when subscription or prepaid credits are required.
|
|
49
49
|
*/
|
|
50
50
|
static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
51
51
|
/**
|
|
@@ -114,7 +114,7 @@ declare class Agents {
|
|
|
114
114
|
*/
|
|
115
115
|
static listMemories<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
116
116
|
/**
|
|
117
|
-
* Get results and outcome summary for title agents. Returns 402 until
|
|
117
|
+
* Get results and outcome summary for title agents. Returns 402 until subscription or prepaid credits are active.
|
|
118
118
|
*/
|
|
119
119
|
static results<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
120
120
|
/**
|
|
@@ -132,7 +132,7 @@ declare class Agents {
|
|
|
132
132
|
*/
|
|
133
133
|
static purchaseCredits<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
134
134
|
/**
|
|
135
|
-
* Start a Stripe-backed agent
|
|
135
|
+
* Start a Stripe-backed agent subscription after setup.
|
|
136
136
|
*/
|
|
137
137
|
static startTrial<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
138
138
|
/**
|
package/dist/esm/index.js
CHANGED
|
@@ -19149,7 +19149,7 @@ var Agents = /** @class */ (function () {
|
|
|
19149
19149
|
return Requests.processRoute(AgentsRoute.routes.listAgents, {}, { title_id: title_id }, params);
|
|
19150
19150
|
};
|
|
19151
19151
|
/**
|
|
19152
|
-
* Create an agent before payment. Runs/results remain gated until
|
|
19152
|
+
* Create an agent before payment. Runs/results remain gated until subscription or prepaid credits.
|
|
19153
19153
|
*/
|
|
19154
19154
|
Agents.createAgent = function (title_id, data, params) {
|
|
19155
19155
|
return Requests.processRoute(AgentsRoute.routes.createAgent, data, { title_id: title_id }, params);
|
|
@@ -19173,7 +19173,7 @@ var Agents = /** @class */ (function () {
|
|
|
19173
19173
|
return Requests.processRoute(AgentsRoute.routes.deleteAgent, {}, { title_id: title_id, agent_id: agent_id }, params);
|
|
19174
19174
|
};
|
|
19175
19175
|
/**
|
|
19176
|
-
* Run an agent planning cycle. Returns 402 when
|
|
19176
|
+
* Run an agent planning cycle. Returns 402 when subscription or prepaid credits are required.
|
|
19177
19177
|
*/
|
|
19178
19178
|
Agents.runAgent = function (title_id, agent_id, data, params) {
|
|
19179
19179
|
return Requests.processRoute(AgentsRoute.routes.runAgent, data, { title_id: title_id, agent_id: agent_id }, params);
|
|
@@ -19279,7 +19279,7 @@ var Agents = /** @class */ (function () {
|
|
|
19279
19279
|
return Requests.processRoute(AgentsRoute.routes.listMemories, {}, { title_id: title_id }, params);
|
|
19280
19280
|
};
|
|
19281
19281
|
/**
|
|
19282
|
-
* Get results and outcome summary for title agents. Returns 402 until
|
|
19282
|
+
* Get results and outcome summary for title agents. Returns 402 until subscription or prepaid credits are active.
|
|
19283
19283
|
*/
|
|
19284
19284
|
Agents.results = function (title_id, params) {
|
|
19285
19285
|
return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id: title_id }, params);
|
|
@@ -19305,7 +19305,7 @@ var Agents = /** @class */ (function () {
|
|
|
19305
19305
|
return Requests.processRoute(AgentsRoute.routes.purchaseCredits, data, { title_id: title_id }, params);
|
|
19306
19306
|
};
|
|
19307
19307
|
/**
|
|
19308
|
-
* Start a Stripe-backed agent
|
|
19308
|
+
* Start a Stripe-backed agent subscription after setup.
|
|
19309
19309
|
*/
|
|
19310
19310
|
Agents.startTrial = function (title_id, data, params) {
|
|
19311
19311
|
return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
|
package/dist/index.d.ts
CHANGED
|
@@ -9237,7 +9237,7 @@ declare class Agents {
|
|
|
9237
9237
|
*/
|
|
9238
9238
|
static listAgents<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9239
9239
|
/**
|
|
9240
|
-
* Create an agent before payment. Runs/results remain gated until
|
|
9240
|
+
* Create an agent before payment. Runs/results remain gated until subscription or prepaid credits.
|
|
9241
9241
|
*/
|
|
9242
9242
|
static createAgent<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9243
9243
|
/**
|
|
@@ -9253,7 +9253,7 @@ declare class Agents {
|
|
|
9253
9253
|
*/
|
|
9254
9254
|
static deleteAgent<T>(title_id: string, agent_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9255
9255
|
/**
|
|
9256
|
-
* Run an agent planning cycle. Returns 402 when
|
|
9256
|
+
* Run an agent planning cycle. Returns 402 when subscription or prepaid credits are required.
|
|
9257
9257
|
*/
|
|
9258
9258
|
static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9259
9259
|
/**
|
|
@@ -9322,7 +9322,7 @@ declare class Agents {
|
|
|
9322
9322
|
*/
|
|
9323
9323
|
static listMemories<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9324
9324
|
/**
|
|
9325
|
-
* Get results and outcome summary for title agents. Returns 402 until
|
|
9325
|
+
* Get results and outcome summary for title agents. Returns 402 until subscription or prepaid credits are active.
|
|
9326
9326
|
*/
|
|
9327
9327
|
static results<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9328
9328
|
/**
|
|
@@ -9340,7 +9340,7 @@ declare class Agents {
|
|
|
9340
9340
|
*/
|
|
9341
9341
|
static purchaseCredits<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9342
9342
|
/**
|
|
9343
|
-
* Start a Stripe-backed agent
|
|
9343
|
+
* Start a Stripe-backed agent subscription after setup.
|
|
9344
9344
|
*/
|
|
9345
9345
|
static startTrial<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
9346
9346
|
/**
|
package/package.json
CHANGED
package/src/api/Agents.ts
CHANGED
|
@@ -45,7 +45,7 @@ class Agents {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create an agent before payment. Runs/results remain gated until
|
|
48
|
+
* Create an agent before payment. Runs/results remain gated until subscription or prepaid credits.
|
|
49
49
|
*/
|
|
50
50
|
public static createAgent<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
51
51
|
return Requests.processRoute(AgentsRoute.routes.createAgent, data, { title_id }, params);
|
|
@@ -73,7 +73,7 @@ class Agents {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Run an agent planning cycle. Returns 402 when
|
|
76
|
+
* Run an agent planning cycle. Returns 402 when subscription or prepaid credits are required.
|
|
77
77
|
*/
|
|
78
78
|
public static runAgent<T>(title_id: string, agent_id: string, data?: AgentRunRequest, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
79
79
|
return Requests.processRoute(AgentsRoute.routes.runAgent, data, { title_id, agent_id }, params);
|
|
@@ -211,7 +211,7 @@ class Agents {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
* Get results and outcome summary for title agents. Returns 402 until
|
|
214
|
+
* Get results and outcome summary for title agents. Returns 402 until subscription or prepaid credits are active.
|
|
215
215
|
*/
|
|
216
216
|
public static results<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
217
217
|
return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id }, params);
|
|
@@ -241,7 +241,7 @@ class Agents {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Start a Stripe-backed agent
|
|
244
|
+
* Start a Stripe-backed agent subscription after setup.
|
|
245
245
|
*/
|
|
246
246
|
public static startTrial<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
247
247
|
return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id }, params);
|