@factify/sdk 0.3.13-rc.1 → 0.3.14-rc.2
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/README.md +0 -7
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/index.d.ts +0 -5
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -5
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/index.d.ts +0 -5
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -5
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +0 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/openapi.json +0 -338
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -5
- package/src/models/operations/index.ts +0 -2
- package/src/sdk/sdk.ts +0 -6
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts +0 -18
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts.map +0 -1
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js +0 -124
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js.map +0 -1
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts +0 -18
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts.map +0 -1
- package/dist/commonjs/funcs/quotaGetUsageHistory.js +0 -126
- package/dist/commonjs/funcs/quotaGetUsageHistory.js.map +0 -1
- package/dist/commonjs/models/components/dailyusage.d.ts +0 -20
- package/dist/commonjs/models/components/dailyusage.d.ts.map +0 -1
- package/dist/commonjs/models/components/dailyusage.js +0 -58
- package/dist/commonjs/models/components/dailyusage.js.map +0 -1
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts +0 -17
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/getorganizationquotaresponse.js +0 -52
- package/dist/commonjs/models/components/getorganizationquotaresponse.js.map +0 -1
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts +0 -25
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/getusagehistoryresponse.js +0 -61
- package/dist/commonjs/models/components/getusagehistoryresponse.js.map +0 -1
- package/dist/commonjs/models/components/organizationquota.d.ts +0 -52
- package/dist/commonjs/models/components/organizationquota.d.ts.map +0 -1
- package/dist/commonjs/models/components/organizationquota.js +0 -71
- package/dist/commonjs/models/components/organizationquota.js.map +0 -1
- package/dist/commonjs/models/components/quotatier.d.ts +0 -17
- package/dist/commonjs/models/components/quotatier.d.ts.map +0 -1
- package/dist/commonjs/models/components/quotatier.js +0 -51
- package/dist/commonjs/models/components/quotatier.js.map +0 -1
- package/dist/commonjs/models/operations/getorganizationquota.d.ts +0 -34
- package/dist/commonjs/models/operations/getorganizationquota.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getorganizationquota.js +0 -73
- package/dist/commonjs/models/operations/getorganizationquota.js.map +0 -1
- package/dist/commonjs/models/operations/getusagehistory.d.ts +0 -41
- package/dist/commonjs/models/operations/getusagehistory.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getusagehistory.js +0 -77
- package/dist/commonjs/models/operations/getusagehistory.js.map +0 -1
- package/dist/commonjs/sdk/quota.d.ts +0 -19
- package/dist/commonjs/sdk/quota.d.ts.map +0 -1
- package/dist/commonjs/sdk/quota.js +0 -32
- package/dist/commonjs/sdk/quota.js.map +0 -1
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts +0 -18
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts.map +0 -1
- package/dist/esm/funcs/quotaGetOrganizationQuota.js +0 -88
- package/dist/esm/funcs/quotaGetOrganizationQuota.js.map +0 -1
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts +0 -18
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts.map +0 -1
- package/dist/esm/funcs/quotaGetUsageHistory.js +0 -90
- package/dist/esm/funcs/quotaGetUsageHistory.js.map +0 -1
- package/dist/esm/models/components/dailyusage.d.ts +0 -20
- package/dist/esm/models/components/dailyusage.d.ts.map +0 -1
- package/dist/esm/models/components/dailyusage.js +0 -21
- package/dist/esm/models/components/dailyusage.js.map +0 -1
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts +0 -17
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts.map +0 -1
- package/dist/esm/models/components/getorganizationquotaresponse.js +0 -15
- package/dist/esm/models/components/getorganizationquotaresponse.js.map +0 -1
- package/dist/esm/models/components/getusagehistoryresponse.d.ts +0 -25
- package/dist/esm/models/components/getusagehistoryresponse.d.ts.map +0 -1
- package/dist/esm/models/components/getusagehistoryresponse.js +0 -24
- package/dist/esm/models/components/getusagehistoryresponse.js.map +0 -1
- package/dist/esm/models/components/organizationquota.d.ts +0 -52
- package/dist/esm/models/components/organizationquota.d.ts.map +0 -1
- package/dist/esm/models/components/organizationquota.js +0 -34
- package/dist/esm/models/components/organizationquota.js.map +0 -1
- package/dist/esm/models/components/quotatier.d.ts +0 -17
- package/dist/esm/models/components/quotatier.d.ts.map +0 -1
- package/dist/esm/models/components/quotatier.js +0 -15
- package/dist/esm/models/components/quotatier.js.map +0 -1
- package/dist/esm/models/operations/getorganizationquota.d.ts +0 -34
- package/dist/esm/models/operations/getorganizationquota.d.ts.map +0 -1
- package/dist/esm/models/operations/getorganizationquota.js +0 -35
- package/dist/esm/models/operations/getorganizationquota.js.map +0 -1
- package/dist/esm/models/operations/getusagehistory.d.ts +0 -41
- package/dist/esm/models/operations/getusagehistory.d.ts.map +0 -1
- package/dist/esm/models/operations/getusagehistory.js +0 -39
- package/dist/esm/models/operations/getusagehistory.js.map +0 -1
- package/dist/esm/sdk/quota.d.ts +0 -19
- package/dist/esm/sdk/quota.d.ts.map +0 -1
- package/dist/esm/sdk/quota.js +0 -28
- package/dist/esm/sdk/quota.js.map +0 -1
- package/src/funcs/quotaGetOrganizationQuota.ts +0 -182
- package/src/funcs/quotaGetUsageHistory.ts +0 -184
- package/src/models/components/dailyusage.ts +0 -48
- package/src/models/components/getorganizationquotaresponse.ts +0 -41
- package/src/models/components/getusagehistoryresponse.ts +0 -58
- package/src/models/components/organizationquota.ts +0 -95
- package/src/models/components/quotatier.ts +0 -24
- package/src/models/operations/getorganizationquota.ts +0 -93
- package/src/models/operations/getusagehistory.ts +0 -100
- package/src/sdk/quota.ts +0 -45
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.quotaGetUsageHistory = quotaGetUsageHistory;
|
|
40
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
41
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
-
const async_js_1 = require("../types/async.js");
|
|
50
|
-
/**
|
|
51
|
-
* Get usage history
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Returns daily usage records for an organization within a specified date range.
|
|
55
|
-
*/
|
|
56
|
-
function quotaGetUsageHistory(client, request, options) {
|
|
57
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
-
}
|
|
59
|
-
async function $do(client, request, options) {
|
|
60
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(z.optional(operations.GetUsageHistoryRequest$outboundSchema), value), "Input validation failed");
|
|
61
|
-
if (!parsed.ok) {
|
|
62
|
-
return [parsed, { status: "invalid" }];
|
|
63
|
-
}
|
|
64
|
-
const payload = parsed.value;
|
|
65
|
-
const body = null;
|
|
66
|
-
const path = (0, url_js_1.pathToFunc)("/v1beta/quota/usage")();
|
|
67
|
-
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
68
|
-
"end_date": payload?.end_date,
|
|
69
|
-
"organization_id": payload?.organization_id,
|
|
70
|
-
"start_date": payload?.start_date,
|
|
71
|
-
});
|
|
72
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
73
|
-
Accept: "application/json",
|
|
74
|
-
}));
|
|
75
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
|
|
76
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
77
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
78
|
-
const context = {
|
|
79
|
-
options: client._options,
|
|
80
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
81
|
-
operationID: "getUsageHistory",
|
|
82
|
-
oAuth2Scopes: null,
|
|
83
|
-
resolvedSecurity: requestSecurity,
|
|
84
|
-
securitySource: client._options.bearerAuth,
|
|
85
|
-
retryConfig: options?.retries
|
|
86
|
-
|| client._options.retryConfig
|
|
87
|
-
|| { strategy: "none" },
|
|
88
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
89
|
-
};
|
|
90
|
-
const requestRes = client._createRequest(context, {
|
|
91
|
-
security: requestSecurity,
|
|
92
|
-
method: "GET",
|
|
93
|
-
baseURL: options?.serverURL,
|
|
94
|
-
path: path,
|
|
95
|
-
headers: headers,
|
|
96
|
-
query: query,
|
|
97
|
-
body: body,
|
|
98
|
-
userAgent: client._options.userAgent,
|
|
99
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
-
}, options);
|
|
101
|
-
if (!requestRes.ok) {
|
|
102
|
-
return [requestRes, { status: "invalid" }];
|
|
103
|
-
}
|
|
104
|
-
const req = requestRes.value;
|
|
105
|
-
const doResult = await client._do(req, {
|
|
106
|
-
context,
|
|
107
|
-
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
108
|
-
retryConfig: context.retryConfig,
|
|
109
|
-
retryCodes: context.retryCodes,
|
|
110
|
-
});
|
|
111
|
-
if (!doResult.ok) {
|
|
112
|
-
return [doResult, { status: "request-error", request: req }];
|
|
113
|
-
}
|
|
114
|
-
const response = doResult.value;
|
|
115
|
-
const responseFields = {
|
|
116
|
-
HttpMeta: { Response: response, Request: req },
|
|
117
|
-
};
|
|
118
|
-
const [result] = await M.match(M.json(200, operations.GetUsageHistoryResponse$inboundSchema, {
|
|
119
|
-
key: "GetUsageHistoryResponse",
|
|
120
|
-
}), M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema), M.jsonErr(429, errors.ErrorT$inboundSchema, { hdrs: true }), M.jsonErr(500, errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
121
|
-
if (!result.ok) {
|
|
122
|
-
return [result, { status: "complete", request: req, response }];
|
|
123
|
-
}
|
|
124
|
-
return [result, { status: "complete", request: req, response }];
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=quotaGetUsageHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotaGetUsageHistory.js","sourceRoot":"","sources":["../../../src/funcs/quotaGetUsageHistory.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,oDAuBC;AArDD,+CAAiC;AAEjC,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,oBAAoB,CAClC,MAAmB,EACnB,OAAuD,EACvD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAmB,EACnB,OAAuD,EACvD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,qCAAqC,CAAC,EAC5D,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,qBAAqB,CAAC,EAAE,CAAC;IAEjD,MAAM,KAAK,GAAG,IAAA,8BAAe,EAAC;QAC5B,UAAU,EAAE,OAAO,EAAE,QAAQ;QAC7B,iBAAiB,EAAE,OAAO,EAAE,eAAe;QAC3C,YAAY,E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AM,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC3D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* DailyUsage represents usage for a single day.
|
|
6
|
-
*/
|
|
7
|
-
export type DailyUsage = {
|
|
8
|
-
/**
|
|
9
|
-
* The date (YYYY-MM-DD format).
|
|
10
|
-
*/
|
|
11
|
-
date?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Request count for this day.
|
|
14
|
-
*/
|
|
15
|
-
requestCount?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const DailyUsage$inboundSchema: z.ZodMiniType<DailyUsage, unknown>;
|
|
19
|
-
export declare function dailyUsageFromJSON(jsonString: string): SafeParseResult<DailyUsage, SDKValidationError>;
|
|
20
|
-
//# sourceMappingURL=dailyusage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dailyusage.d.ts","sourceRoot":"","sources":["../../../../src/models/components/dailyusage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAWrE,CAAC;AAEJ,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DailyUsage$inboundSchema = void 0;
|
|
40
|
-
exports.dailyUsageFromJSON = dailyUsageFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const types = __importStar(require("../../types/primitives.js"));
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.DailyUsage$inboundSchema = z
|
|
47
|
-
.pipe(z.object({
|
|
48
|
-
date: types.optional(types.string()),
|
|
49
|
-
request_count: types.optional(types.number()),
|
|
50
|
-
}), z.transform((v) => {
|
|
51
|
-
return (0, primitives_js_1.remap)(v, {
|
|
52
|
-
"request_count": "requestCount",
|
|
53
|
-
});
|
|
54
|
-
}));
|
|
55
|
-
function dailyUsageFromJSON(jsonString) {
|
|
56
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DailyUsage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DailyUsage' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=dailyusage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dailyusage.js","sourceRoot":"","sources":["../../../../src/models/components/dailyusage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,gDAQC;AA3CD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AAiBnD,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACpC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC9C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEJ,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { OrganizationQuota } from "./organizationquota.js";
|
|
5
|
-
/**
|
|
6
|
-
* GetOrganizationQuotaResponse returns the quota status.
|
|
7
|
-
*/
|
|
8
|
-
export type GetOrganizationQuotaResponse = {
|
|
9
|
-
/**
|
|
10
|
-
* OrganizationQuota represents the quota status for an organization.
|
|
11
|
-
*/
|
|
12
|
-
quota?: OrganizationQuota | undefined;
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export declare const GetOrganizationQuotaResponse$inboundSchema: z.ZodMiniType<GetOrganizationQuotaResponse, unknown>;
|
|
16
|
-
export declare function getOrganizationQuotaResponseFromJSON(jsonString: string): SafeParseResult<GetOrganizationQuotaResponse, SDKValidationError>;
|
|
17
|
-
//# sourceMappingURL=getorganizationquotaresponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getorganizationquotaresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/getorganizationquotaresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAGP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GetOrganizationQuotaResponse$inboundSchema = void 0;
|
|
40
|
-
exports.getOrganizationQuotaResponseFromJSON = getOrganizationQuotaResponseFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
42
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
-
const types = __importStar(require("../../types/primitives.js"));
|
|
44
|
-
const organizationquota_js_1 = require("./organizationquota.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.GetOrganizationQuotaResponse$inboundSchema = z.object({
|
|
47
|
-
quota: types.optional(organizationquota_js_1.OrganizationQuota$inboundSchema),
|
|
48
|
-
});
|
|
49
|
-
function getOrganizationQuotaResponseFromJSON(jsonString) {
|
|
50
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOrganizationQuotaResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrganizationQuotaResponse' from JSON`);
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=getorganizationquotaresponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getorganizationquotaresponse.js","sourceRoot":"","sources":["../../../../src/models/components/getorganizationquotaresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,oFAQC;AApCD,+CAAiC;AACjC,qDAAiD;AAEjD,iEAAmD;AAEnD,iEAGgC;AAYhC,gBAAgB;AACH,QAAA,0CAA0C,GAGnD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,sDAA+B,CAAC;CACvD,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { DailyUsage } from "./dailyusage.js";
|
|
5
|
-
/**
|
|
6
|
-
* GetUsageHistoryResponse returns usage history.
|
|
7
|
-
*/
|
|
8
|
-
export type GetUsageHistoryResponse = {
|
|
9
|
-
/**
|
|
10
|
-
* Daily usage records.
|
|
11
|
-
*/
|
|
12
|
-
dailyUsage?: Array<DailyUsage> | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The organization ID.
|
|
15
|
-
*/
|
|
16
|
-
organizationId?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Total requests in the period.
|
|
19
|
-
*/
|
|
20
|
-
totalRequests?: number | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const GetUsageHistoryResponse$inboundSchema: z.ZodMiniType<GetUsageHistoryResponse, unknown>;
|
|
24
|
-
export declare function getUsageHistoryResponseFromJSON(jsonString: string): SafeParseResult<GetUsageHistoryResponse, SDKValidationError>;
|
|
25
|
-
//# sourceMappingURL=getusagehistoryresponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getusagehistoryresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/getusagehistoryresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAcR,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GetUsageHistoryResponse$inboundSchema = void 0;
|
|
40
|
-
exports.getUsageHistoryResponseFromJSON = getUsageHistoryResponseFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const types = __importStar(require("../../types/primitives.js"));
|
|
45
|
-
const dailyusage_js_1 = require("./dailyusage.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.GetUsageHistoryResponse$inboundSchema = z.pipe(z.object({
|
|
48
|
-
daily_usage: types.optional(z.array(dailyusage_js_1.DailyUsage$inboundSchema)),
|
|
49
|
-
organization_id: types.optional(types.string()),
|
|
50
|
-
total_requests: types.optional(types.number()),
|
|
51
|
-
}), z.transform((v) => {
|
|
52
|
-
return (0, primitives_js_1.remap)(v, {
|
|
53
|
-
"daily_usage": "dailyUsage",
|
|
54
|
-
"organization_id": "organizationId",
|
|
55
|
-
"total_requests": "totalRequests",
|
|
56
|
-
});
|
|
57
|
-
}));
|
|
58
|
-
function getUsageHistoryResponseFromJSON(jsonString) {
|
|
59
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetUsageHistoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUsageHistoryResponse' from JSON`);
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=getusagehistoryresponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getusagehistoryresponse.js","sourceRoot":"","sources":["../../../../src/models/components/getusagehistoryresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,0EAQC;AArDD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AAEnD,mDAAuE;AAoBvE,gBAAgB;AACH,QAAA,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wCAAwB,CAAC,CAAC;IAC9D,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC/C,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC/C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,iBAAiB,EAAE,gBAAgB;QACnC,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { QuotaTier } from "./quotatier.js";
|
|
5
|
-
/**
|
|
6
|
-
* OrganizationQuota represents the quota status for an organization.
|
|
7
|
-
*/
|
|
8
|
-
export type OrganizationQuota = {
|
|
9
|
-
/**
|
|
10
|
-
* Current usage in the billing period.
|
|
11
|
-
*/
|
|
12
|
-
currentUsage?: number | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The effective monthly limit (considers custom_limit if set).
|
|
15
|
-
*/
|
|
16
|
-
effectiveLimit?: number | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Whether quota is exceeded.
|
|
19
|
-
*/
|
|
20
|
-
isExceeded?: boolean | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The organization ID.
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* Pattern: org_[0-9a-hjkmnp-tv-z]{26}
|
|
26
|
-
*/
|
|
27
|
-
organizationId?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Start of current billing period.
|
|
30
|
-
*/
|
|
31
|
-
periodStart?: Date | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Remaining requests in the billing period.
|
|
34
|
-
*/
|
|
35
|
-
remaining?: number | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* When the quota resets (start of next billing period).
|
|
38
|
-
*/
|
|
39
|
-
resetAt?: Date | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* QuotaTier represents the organization's quota tier.
|
|
42
|
-
*/
|
|
43
|
-
tier?: QuotaTier | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Usage as a percentage (0-100+).
|
|
46
|
-
*/
|
|
47
|
-
usagePercent?: number | undefined;
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
export declare const OrganizationQuota$inboundSchema: z.ZodMiniType<OrganizationQuota, unknown>;
|
|
51
|
-
export declare function organizationQuotaFromJSON(jsonString: string): SafeParseResult<OrganizationQuota, SDKValidationError>;
|
|
52
|
-
//# sourceMappingURL=organizationquota.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationquota.d.ts","sourceRoot":"","sources":["../../../../src/models/components/organizationquota.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA2B,MAAM,gBAAgB,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAwBR,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.OrganizationQuota$inboundSchema = void 0;
|
|
40
|
-
exports.organizationQuotaFromJSON = organizationQuotaFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v4-mini"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const types = __importStar(require("../../types/primitives.js"));
|
|
45
|
-
const quotatier_js_1 = require("./quotatier.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.OrganizationQuota$inboundSchema = z.pipe(z.object({
|
|
48
|
-
current_usage: types.optional(types.number()),
|
|
49
|
-
effective_limit: types.optional(types.number()),
|
|
50
|
-
is_exceeded: types.optional(types.boolean()),
|
|
51
|
-
organization_id: types.optional(types.string()),
|
|
52
|
-
period_start: types.optional(types.date()),
|
|
53
|
-
remaining: types.optional(types.number()),
|
|
54
|
-
reset_at: types.optional(types.date()),
|
|
55
|
-
tier: types.optional(quotatier_js_1.QuotaTier$inboundSchema),
|
|
56
|
-
usage_percent: types.optional(types.number()),
|
|
57
|
-
}), z.transform((v) => {
|
|
58
|
-
return (0, primitives_js_1.remap)(v, {
|
|
59
|
-
"current_usage": "currentUsage",
|
|
60
|
-
"effective_limit": "effectiveLimit",
|
|
61
|
-
"is_exceeded": "isExceeded",
|
|
62
|
-
"organization_id": "organizationId",
|
|
63
|
-
"period_start": "periodStart",
|
|
64
|
-
"reset_at": "resetAt",
|
|
65
|
-
"usage_percent": "usagePercent",
|
|
66
|
-
});
|
|
67
|
-
}));
|
|
68
|
-
function organizationQuotaFromJSON(jsonString) {
|
|
69
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OrganizationQuota$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OrganizationQuota' from JSON`);
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=organizationquota.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationquota.js","sourceRoot":"","sources":["../../../../src/models/components/organizationquota.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,8DAQC;AA1FD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AAEnD,iDAAoE;AA+CpE,gBAAgB;AACH,QAAA,+BAA+B,GAGxC,CAAC,CAAC,IAAI,CACR,CAAC,CA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17 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
-
/**
|
|
4
|
-
* QuotaTier represents the organization's quota tier.
|
|
5
|
-
*/
|
|
6
|
-
export declare const QuotaTier: {
|
|
7
|
-
readonly QuotaTierUnspecified: "QUOTA_TIER_UNSPECIFIED";
|
|
8
|
-
readonly QuotaTierFree: "QUOTA_TIER_FREE";
|
|
9
|
-
readonly QuotaTierCustom: "QUOTA_TIER_CUSTOM";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* QuotaTier represents the organization's quota tier.
|
|
13
|
-
*/
|
|
14
|
-
export type QuotaTier = OpenEnum<typeof QuotaTier>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const QuotaTier$inboundSchema: z.ZodMiniType<QuotaTier, unknown>;
|
|
17
|
-
//# sourceMappingURL=quotatier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotatier.d.ts","sourceRoot":"","sources":["../../../../src/models/components/quotatier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAClC,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.QuotaTier$inboundSchema = exports.QuotaTier = void 0;
|
|
40
|
-
const openEnums = __importStar(require("../../types/enums.js"));
|
|
41
|
-
/**
|
|
42
|
-
* QuotaTier represents the organization's quota tier.
|
|
43
|
-
*/
|
|
44
|
-
exports.QuotaTier = {
|
|
45
|
-
QuotaTierUnspecified: "QUOTA_TIER_UNSPECIFIED",
|
|
46
|
-
QuotaTierFree: "QUOTA_TIER_FREE",
|
|
47
|
-
QuotaTierCustom: "QUOTA_TIER_CUSTOM",
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.QuotaTier$inboundSchema = openEnums.inboundSchema(exports.QuotaTier);
|
|
51
|
-
//# sourceMappingURL=quotatier.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quotatier.js","sourceRoot":"","sources":["../../../../src/models/components/quotatier.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,gEAAkD;AAGlD;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAMX,gBAAgB;AACH,QAAA,uBAAuB,GAClC,SAAS,CAAC,aAAa,CAAC,iBAAS,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type GetOrganizationQuotaRequest = {
|
|
6
|
-
/**
|
|
7
|
-
* Optional: organization ID to query. If not provided, uses the caller's organization.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* Only admins can query other organizations.
|
|
11
|
-
*/
|
|
12
|
-
organizationId?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type GetOrganizationQuotaResponse = {
|
|
15
|
-
httpMeta: components.HTTPMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Success
|
|
18
|
-
*/
|
|
19
|
-
getOrganizationQuotaResponse?: components.GetOrganizationQuotaResponse | undefined;
|
|
20
|
-
headers: {
|
|
21
|
-
[k: string]: Array<string>;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export type GetOrganizationQuotaRequest$Outbound = {
|
|
26
|
-
organization_id?: string | undefined;
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const GetOrganizationQuotaRequest$outboundSchema: z.ZodMiniType<GetOrganizationQuotaRequest$Outbound, GetOrganizationQuotaRequest>;
|
|
30
|
-
export declare function getOrganizationQuotaRequestToJSON(getOrganizationQuotaRequest: GetOrganizationQuotaRequest): string;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const GetOrganizationQuotaResponse$inboundSchema: z.ZodMiniType<GetOrganizationQuotaResponse, unknown>;
|
|
33
|
-
export declare function getOrganizationQuotaResponseFromJSON(jsonString: string): SafeParseResult<GetOrganizationQuotaResponse, SDKValidationError>;
|
|
34
|
-
//# sourceMappingURL=getorganizationquota.d.ts.map
|