@stigg/typescript 0.1.0-beta.1 → 0.1.0-beta.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.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/v1/{events/credits → credits}/credits.d.mts +6 -6
- package/resources/v1/credits/credits.d.mts.map +1 -0
- package/resources/v1/{events/credits → credits}/credits.d.ts +6 -6
- package/resources/v1/credits/credits.d.ts.map +1 -0
- package/resources/v1/{events/credits → credits}/credits.js +3 -3
- package/resources/v1/credits/credits.js.map +1 -0
- package/resources/v1/{events/credits → credits}/credits.mjs +2 -2
- package/resources/v1/credits/credits.mjs.map +1 -0
- package/resources/v1/{events/credits → credits}/custom-currencies.d.mts +12 -219
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -0
- package/resources/v1/{events/credits → credits}/custom-currencies.d.ts +12 -219
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -0
- package/resources/v1/{events/credits → credits}/custom-currencies.js +3 -3
- package/resources/v1/credits/custom-currencies.js.map +1 -0
- package/resources/v1/{events/credits → credits}/custom-currencies.mjs +3 -3
- package/resources/v1/credits/custom-currencies.mjs.map +1 -0
- package/resources/v1/{events/credits → credits}/grants.d.mts +4 -4
- package/resources/v1/credits/grants.d.mts.map +1 -0
- package/resources/v1/{events/credits → credits}/grants.d.ts +4 -4
- package/resources/v1/credits/grants.d.ts.map +1 -0
- package/resources/v1/{events/credits → credits}/grants.js +3 -3
- package/resources/v1/credits/grants.js.map +1 -0
- package/resources/v1/{events/credits → credits}/grants.mjs +3 -3
- package/resources/v1/credits/grants.mjs.map +1 -0
- package/resources/v1/credits/index.d.mts +4 -0
- package/resources/v1/credits/index.d.mts.map +1 -0
- package/resources/v1/credits/index.d.ts +4 -0
- package/resources/v1/credits/index.d.ts.map +1 -0
- package/resources/v1/credits/index.js.map +1 -0
- package/resources/v1/credits/index.mjs.map +1 -0
- package/resources/v1/credits.d.mts.map +1 -0
- package/resources/v1/credits.d.ts.map +1 -0
- package/resources/v1/{events/credits.js → credits.js} +1 -1
- package/resources/v1/credits.js.map +1 -0
- package/resources/v1/credits.mjs.map +1 -0
- package/resources/v1/events.d.mts +65 -1
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +65 -1
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +15 -2
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +13 -1
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/index.d.mts +2 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +6 -6
- package/resources/v1/subscriptions/subscriptions.d.ts +6 -6
- package/resources/v1/v1.d.mts +6 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/{events/credits → credits}/credits.ts +6 -12
- package/src/resources/v1/{events/credits → credits}/custom-currencies.ts +13 -256
- package/src/resources/v1/{events/credits → credits}/grants.ts +5 -5
- package/src/resources/v1/{events/credits → credits}/index.ts +1 -4
- package/src/resources/v1/events.ts +75 -1
- package/src/resources/v1/index.ts +11 -1
- package/src/resources/v1/subscriptions/subscriptions.ts +6 -6
- package/src/resources/v1/v1.ts +26 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/events/credits/credits.d.mts.map +0 -1
- package/resources/v1/events/credits/credits.d.ts.map +0 -1
- package/resources/v1/events/credits/credits.js.map +0 -1
- package/resources/v1/events/credits/credits.mjs.map +0 -1
- package/resources/v1/events/credits/custom-currencies.d.mts.map +0 -1
- package/resources/v1/events/credits/custom-currencies.d.ts.map +0 -1
- package/resources/v1/events/credits/custom-currencies.js.map +0 -1
- package/resources/v1/events/credits/custom-currencies.mjs.map +0 -1
- package/resources/v1/events/credits/grants.d.mts.map +0 -1
- package/resources/v1/events/credits/grants.d.ts.map +0 -1
- package/resources/v1/events/credits/grants.js.map +0 -1
- package/resources/v1/events/credits/grants.mjs.map +0 -1
- package/resources/v1/events/credits/index.d.mts +0 -4
- package/resources/v1/events/credits/index.d.mts.map +0 -1
- package/resources/v1/events/credits/index.d.ts +0 -4
- package/resources/v1/events/credits/index.d.ts.map +0 -1
- package/resources/v1/events/credits/index.js.map +0 -1
- package/resources/v1/events/credits/index.mjs.map +0 -1
- package/resources/v1/events/credits.d.mts.map +0 -1
- package/resources/v1/events/credits.d.ts.map +0 -1
- package/resources/v1/events/credits.js.map +0 -1
- package/resources/v1/events/credits.mjs.map +0 -1
- package/resources/v1/events/events.d.mts +0 -70
- package/resources/v1/events/events.d.mts.map +0 -1
- package/resources/v1/events/events.d.ts +0 -70
- package/resources/v1/events/events.d.ts.map +0 -1
- package/resources/v1/events/events.js +0 -27
- package/resources/v1/events/events.js.map +0 -1
- package/resources/v1/events/events.mjs +0 -22
- package/resources/v1/events/events.mjs.map +0 -1
- package/resources/v1/events/index.d.mts +0 -3
- package/resources/v1/events/index.d.mts.map +0 -1
- package/resources/v1/events/index.d.ts +0 -3
- package/resources/v1/events/index.d.ts.map +0 -1
- package/resources/v1/events/index.js +0 -9
- package/resources/v1/events/index.js.map +0 -1
- package/resources/v1/events/index.mjs +0 -4
- package/resources/v1/events/index.mjs.map +0 -1
- package/src/resources/v1/events/events.ts +0 -103
- package/src/resources/v1/events/index.ts +0 -13
- /package/resources/v1/{events/credits → credits}/index.js +0 -0
- /package/resources/v1/{events/credits → credits}/index.mjs +0 -0
- /package/resources/v1/{events/credits.d.mts → credits.d.mts} +0 -0
- /package/resources/v1/{events/credits.d.ts → credits.d.ts} +0 -0
- /package/resources/v1/{events/credits.mjs → credits.mjs} +0 -0
- /package/src/resources/v1/{events/credits.ts → credits.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Operations related to custom currencies
|
|
7
7
|
*/
|
|
@@ -9,11 +9,11 @@ export declare class CustomCurrencies extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a new custom currency in the environment.
|
|
11
11
|
*/
|
|
12
|
-
create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<
|
|
12
|
+
create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* Updates an existing custom currency. Only the supplied fields are modified.
|
|
15
15
|
*/
|
|
16
|
-
update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<
|
|
16
|
+
update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
|
|
17
17
|
/**
|
|
18
18
|
* Retrieves a paginated list of custom currencies in the environment. Archived
|
|
19
19
|
* currencies are excluded by default; pass `status=ARCHIVED` (or
|
|
@@ -25,7 +25,7 @@ export declare class CustomCurrencies extends APIResource {
|
|
|
25
25
|
* active plan or addon — use the associated-entities endpoint first to inspect
|
|
26
26
|
* dependencies.
|
|
27
27
|
*/
|
|
28
|
-
archive(currencyID: string, options?: RequestOptions): APIPromise<
|
|
28
|
+
archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Lists the active plans and addons that reference a custom currency. Useful
|
|
31
31
|
* before archiving to inspect dependencies.
|
|
@@ -35,88 +35,19 @@ export declare class CustomCurrencies extends APIResource {
|
|
|
35
35
|
* Restores a previously archived custom currency. Fails if another active currency
|
|
36
36
|
* with the same ID already exists.
|
|
37
37
|
*/
|
|
38
|
-
unarchive(currencyID: string, options?: RequestOptions): APIPromise<
|
|
38
|
+
unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
|
|
39
39
|
}
|
|
40
40
|
export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
|
|
41
41
|
/**
|
|
42
42
|
* Response object
|
|
43
43
|
*/
|
|
44
|
-
export interface
|
|
44
|
+
export interface CustomCurrencyResponse {
|
|
45
45
|
/**
|
|
46
46
|
* A custom currency used to denominate credit-based entitlements and pricing
|
|
47
47
|
*/
|
|
48
|
-
data:
|
|
48
|
+
data: CustomCurrencyResponse.Data;
|
|
49
49
|
}
|
|
50
|
-
export declare namespace
|
|
51
|
-
/**
|
|
52
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
53
|
-
*/
|
|
54
|
-
interface Data {
|
|
55
|
-
/**
|
|
56
|
-
* The unique identifier for the custom currency
|
|
57
|
-
*/
|
|
58
|
-
id: string;
|
|
59
|
-
/**
|
|
60
|
-
* Timestamp of when the record was deleted
|
|
61
|
-
*/
|
|
62
|
-
archivedAt: string | null;
|
|
63
|
-
/**
|
|
64
|
-
* Timestamp of when the record was created
|
|
65
|
-
*/
|
|
66
|
-
createdAt: string;
|
|
67
|
-
/**
|
|
68
|
-
* Description of the currency
|
|
69
|
-
*/
|
|
70
|
-
description: string | null;
|
|
71
|
-
/**
|
|
72
|
-
* The display name of the custom currency
|
|
73
|
-
*/
|
|
74
|
-
displayName: string;
|
|
75
|
-
/**
|
|
76
|
-
* Metadata associated with the entity
|
|
77
|
-
*/
|
|
78
|
-
metadata: {
|
|
79
|
-
[key: string]: string;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* The symbol used to represent the custom currency
|
|
83
|
-
*/
|
|
84
|
-
symbol: string | null;
|
|
85
|
-
/**
|
|
86
|
-
* Singular and plural unit labels for a custom currency
|
|
87
|
-
*/
|
|
88
|
-
units: Data.Units | null;
|
|
89
|
-
/**
|
|
90
|
-
* Timestamp of when the record was last updated
|
|
91
|
-
*/
|
|
92
|
-
updatedAt: string;
|
|
93
|
-
}
|
|
94
|
-
namespace Data {
|
|
95
|
-
/**
|
|
96
|
-
* Singular and plural unit labels for a custom currency
|
|
97
|
-
*/
|
|
98
|
-
interface Units {
|
|
99
|
-
/**
|
|
100
|
-
* Plural form of the unit label
|
|
101
|
-
*/
|
|
102
|
-
plural: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Singular form of the unit label
|
|
105
|
-
*/
|
|
106
|
-
singular: string | null;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Response object
|
|
112
|
-
*/
|
|
113
|
-
export interface CustomCurrencyUpdateResponse {
|
|
114
|
-
/**
|
|
115
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
116
|
-
*/
|
|
117
|
-
data: CustomCurrencyUpdateResponse.Data;
|
|
118
|
-
}
|
|
119
|
-
export declare namespace CustomCurrencyUpdateResponse {
|
|
50
|
+
export declare namespace CustomCurrencyResponse {
|
|
120
51
|
/**
|
|
121
52
|
* A custom currency used to denominate credit-based entitlements and pricing
|
|
122
53
|
*/
|
|
@@ -234,75 +165,6 @@ export declare namespace CustomCurrencyListResponse {
|
|
|
234
165
|
singular: string | null;
|
|
235
166
|
}
|
|
236
167
|
}
|
|
237
|
-
/**
|
|
238
|
-
* Response object
|
|
239
|
-
*/
|
|
240
|
-
export interface CustomCurrencyArchiveResponse {
|
|
241
|
-
/**
|
|
242
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
243
|
-
*/
|
|
244
|
-
data: CustomCurrencyArchiveResponse.Data;
|
|
245
|
-
}
|
|
246
|
-
export declare namespace CustomCurrencyArchiveResponse {
|
|
247
|
-
/**
|
|
248
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
249
|
-
*/
|
|
250
|
-
interface Data {
|
|
251
|
-
/**
|
|
252
|
-
* The unique identifier for the custom currency
|
|
253
|
-
*/
|
|
254
|
-
id: string;
|
|
255
|
-
/**
|
|
256
|
-
* Timestamp of when the record was deleted
|
|
257
|
-
*/
|
|
258
|
-
archivedAt: string | null;
|
|
259
|
-
/**
|
|
260
|
-
* Timestamp of when the record was created
|
|
261
|
-
*/
|
|
262
|
-
createdAt: string;
|
|
263
|
-
/**
|
|
264
|
-
* Description of the currency
|
|
265
|
-
*/
|
|
266
|
-
description: string | null;
|
|
267
|
-
/**
|
|
268
|
-
* The display name of the custom currency
|
|
269
|
-
*/
|
|
270
|
-
displayName: string;
|
|
271
|
-
/**
|
|
272
|
-
* Metadata associated with the entity
|
|
273
|
-
*/
|
|
274
|
-
metadata: {
|
|
275
|
-
[key: string]: string;
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* The symbol used to represent the custom currency
|
|
279
|
-
*/
|
|
280
|
-
symbol: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* Singular and plural unit labels for a custom currency
|
|
283
|
-
*/
|
|
284
|
-
units: Data.Units | null;
|
|
285
|
-
/**
|
|
286
|
-
* Timestamp of when the record was last updated
|
|
287
|
-
*/
|
|
288
|
-
updatedAt: string;
|
|
289
|
-
}
|
|
290
|
-
namespace Data {
|
|
291
|
-
/**
|
|
292
|
-
* Singular and plural unit labels for a custom currency
|
|
293
|
-
*/
|
|
294
|
-
interface Units {
|
|
295
|
-
/**
|
|
296
|
-
* Plural form of the unit label
|
|
297
|
-
*/
|
|
298
|
-
plural: string | null;
|
|
299
|
-
/**
|
|
300
|
-
* Singular form of the unit label
|
|
301
|
-
*/
|
|
302
|
-
singular: string | null;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
168
|
/**
|
|
307
169
|
* List of entities (plans or addons) that reference a custom currency
|
|
308
170
|
*/
|
|
@@ -328,75 +190,6 @@ export declare namespace CustomCurrencyListAssociatedEntitiesResponse {
|
|
|
328
190
|
type: string;
|
|
329
191
|
}
|
|
330
192
|
}
|
|
331
|
-
/**
|
|
332
|
-
* Response object
|
|
333
|
-
*/
|
|
334
|
-
export interface CustomCurrencyUnarchiveResponse {
|
|
335
|
-
/**
|
|
336
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
337
|
-
*/
|
|
338
|
-
data: CustomCurrencyUnarchiveResponse.Data;
|
|
339
|
-
}
|
|
340
|
-
export declare namespace CustomCurrencyUnarchiveResponse {
|
|
341
|
-
/**
|
|
342
|
-
* A custom currency used to denominate credit-based entitlements and pricing
|
|
343
|
-
*/
|
|
344
|
-
interface Data {
|
|
345
|
-
/**
|
|
346
|
-
* The unique identifier for the custom currency
|
|
347
|
-
*/
|
|
348
|
-
id: string;
|
|
349
|
-
/**
|
|
350
|
-
* Timestamp of when the record was deleted
|
|
351
|
-
*/
|
|
352
|
-
archivedAt: string | null;
|
|
353
|
-
/**
|
|
354
|
-
* Timestamp of when the record was created
|
|
355
|
-
*/
|
|
356
|
-
createdAt: string;
|
|
357
|
-
/**
|
|
358
|
-
* Description of the currency
|
|
359
|
-
*/
|
|
360
|
-
description: string | null;
|
|
361
|
-
/**
|
|
362
|
-
* The display name of the custom currency
|
|
363
|
-
*/
|
|
364
|
-
displayName: string;
|
|
365
|
-
/**
|
|
366
|
-
* Metadata associated with the entity
|
|
367
|
-
*/
|
|
368
|
-
metadata: {
|
|
369
|
-
[key: string]: string;
|
|
370
|
-
};
|
|
371
|
-
/**
|
|
372
|
-
* The symbol used to represent the custom currency
|
|
373
|
-
*/
|
|
374
|
-
symbol: string | null;
|
|
375
|
-
/**
|
|
376
|
-
* Singular and plural unit labels for a custom currency
|
|
377
|
-
*/
|
|
378
|
-
units: Data.Units | null;
|
|
379
|
-
/**
|
|
380
|
-
* Timestamp of when the record was last updated
|
|
381
|
-
*/
|
|
382
|
-
updatedAt: string;
|
|
383
|
-
}
|
|
384
|
-
namespace Data {
|
|
385
|
-
/**
|
|
386
|
-
* Singular and plural unit labels for a custom currency
|
|
387
|
-
*/
|
|
388
|
-
interface Units {
|
|
389
|
-
/**
|
|
390
|
-
* Plural form of the unit label
|
|
391
|
-
*/
|
|
392
|
-
plural: string | null;
|
|
393
|
-
/**
|
|
394
|
-
* Singular form of the unit label
|
|
395
|
-
*/
|
|
396
|
-
singular: string | null;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
193
|
export interface CustomCurrencyCreateParams {
|
|
401
194
|
/**
|
|
402
195
|
* The unique identifier for the new custom currency
|
|
@@ -492,6 +285,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
|
|
|
492
285
|
status?: Array<'ACTIVE' | 'ARCHIVED'>;
|
|
493
286
|
}
|
|
494
287
|
export declare namespace CustomCurrencies {
|
|
495
|
-
export { type
|
|
288
|
+
export { type CustomCurrencyResponse as CustomCurrencyResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
|
|
496
289
|
}
|
|
497
290
|
//# sourceMappingURL=custom-currencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-currencies.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits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AM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC;CAC1C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB;IACpE;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CustomCurrencies = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
9
|
* Operations related to custom currencies
|
|
10
10
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"m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CAAC;CACF;AAjED,4CAiEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { MyCursorIDPage } from "
|
|
4
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Operations related to custom currencies
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-currencies.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qCAAqC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,EACnC,CAAA,cAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,qCAAqC,UAAU,sBAAsB,EACzE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,UAAkB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Operations related to credit grants
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE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{ APIResource } from "
|
|
2
|
-
import { APIPromise } from "
|
|
3
|
-
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Operations related to credit grants
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IAOnE;;;OAGG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG5E;AAED,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB;;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L,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;KACX;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Grants = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const pagination_1 = require("
|
|
7
|
-
const path_1 = require("
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
/**
|
|
9
9
|
* Operations related to credit grants
|
|
10
10
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAElG,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,2BAAiC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AA7BD,wBA6BC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { MyCursorIDPage } from "
|
|
4
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Operations related to credit grants
|
|
7
7
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grants.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAiC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,0BAA0B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
|
|
2
|
+
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
|
|
3
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
|
|
2
|
+
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
|
|
3
|
+
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,sCAOkB;AANhB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAQR;OACM,EACL,gBAAgB,GAQjB;OACM,EACL,MAAM,GAMP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./credits/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=credits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../src/resources/v1/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,2 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to usage & metering
|
|
6
|
+
*/
|
|
7
|
+
export declare class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Reports raw usage events for event-based metering. Events are ingested
|
|
10
|
+
* asynchronously and aggregated into usage totals.
|
|
11
|
+
*/
|
|
12
|
+
report(body: EventReportParams, options?: RequestOptions): APIPromise<EventReportResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Response object
|
|
16
|
+
*/
|
|
17
|
+
export interface EventReportResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Empty success response confirming that events were successfully ingested and
|
|
20
|
+
* queued for processing by Stigg's metering system.
|
|
21
|
+
*/
|
|
22
|
+
data: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface EventReportParams {
|
|
25
|
+
/**
|
|
26
|
+
* A list of usage events to report
|
|
27
|
+
*/
|
|
28
|
+
events: Array<EventReportParams.Event>;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace EventReportParams {
|
|
31
|
+
/**
|
|
32
|
+
* Raw usage event
|
|
33
|
+
*/
|
|
34
|
+
interface Event {
|
|
35
|
+
/**
|
|
36
|
+
* Customer id
|
|
37
|
+
*/
|
|
38
|
+
customerId: string;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the usage event
|
|
41
|
+
*/
|
|
42
|
+
eventName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Idempotency key
|
|
45
|
+
*/
|
|
46
|
+
idempotencyKey: string;
|
|
47
|
+
/**
|
|
48
|
+
* Dimensions associated with the usage event
|
|
49
|
+
*/
|
|
50
|
+
dimensions?: {
|
|
51
|
+
[key: string]: string | number | boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Resource id
|
|
55
|
+
*/
|
|
56
|
+
resourceId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Timestamp
|
|
59
|
+
*/
|
|
60
|
+
timestamp?: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export declare namespace Events {
|
|
64
|
+
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
65
|
+
}
|
|
2
66
|
//# sourceMappingURL=events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
package/resources/v1/events.d.ts
CHANGED
|
@@ -1,2 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to usage & metering
|
|
6
|
+
*/
|
|
7
|
+
export declare class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Reports raw usage events for event-based metering. Events are ingested
|
|
10
|
+
* asynchronously and aggregated into usage totals.
|
|
11
|
+
*/
|
|
12
|
+
report(body: EventReportParams, options?: RequestOptions): APIPromise<EventReportResponse>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Response object
|
|
16
|
+
*/
|
|
17
|
+
export interface EventReportResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Empty success response confirming that events were successfully ingested and
|
|
20
|
+
* queued for processing by Stigg's metering system.
|
|
21
|
+
*/
|
|
22
|
+
data: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface EventReportParams {
|
|
25
|
+
/**
|
|
26
|
+
* A list of usage events to report
|
|
27
|
+
*/
|
|
28
|
+
events: Array<EventReportParams.Event>;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace EventReportParams {
|
|
31
|
+
/**
|
|
32
|
+
* Raw usage event
|
|
33
|
+
*/
|
|
34
|
+
interface Event {
|
|
35
|
+
/**
|
|
36
|
+
* Customer id
|
|
37
|
+
*/
|
|
38
|
+
customerId: string;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the usage event
|
|
41
|
+
*/
|
|
42
|
+
eventName: string;
|
|
43
|
+
/**
|
|
44
|
+
* Idempotency key
|
|
45
|
+
*/
|
|
46
|
+
idempotencyKey: string;
|
|
47
|
+
/**
|
|
48
|
+
* Dimensions associated with the usage event
|
|
49
|
+
*/
|
|
50
|
+
dimensions?: {
|
|
51
|
+
[key: string]: string | number | boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Resource id
|
|
55
|
+
*/
|
|
56
|
+
resourceId?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Timestamp
|
|
59
|
+
*/
|
|
60
|
+
timestamp?: string;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export declare namespace Events {
|
|
64
|
+
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
65
|
+
}
|
|
2
66
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/v1/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|