@factify/sdk 0.3.11 → 0.3.13-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +7 -0
  2. package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts +18 -0
  3. package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/quotaGetOrganizationQuota.js +124 -0
  5. package/dist/commonjs/funcs/quotaGetOrganizationQuota.js.map +1 -0
  6. package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts +18 -0
  7. package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/quotaGetUsageHistory.js +126 -0
  9. package/dist/commonjs/funcs/quotaGetUsageHistory.js.map +1 -0
  10. package/dist/commonjs/lib/config.d.ts +3 -3
  11. package/dist/commonjs/lib/config.js +3 -3
  12. package/dist/commonjs/lib/config.js.map +1 -1
  13. package/dist/commonjs/models/components/createorganizationrequest.d.ts +2 -2
  14. package/dist/commonjs/models/components/createorganizationrequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/createorganizationrequest.js +1 -1
  16. package/dist/commonjs/models/components/createorganizationrequest.js.map +1 -1
  17. package/dist/commonjs/models/components/dailyusage.d.ts +20 -0
  18. package/dist/commonjs/models/components/dailyusage.d.ts.map +1 -0
  19. package/dist/commonjs/models/components/dailyusage.js +58 -0
  20. package/dist/commonjs/models/components/dailyusage.js.map +1 -0
  21. package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts +17 -0
  22. package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts.map +1 -0
  23. package/dist/commonjs/models/components/getorganizationquotaresponse.js +52 -0
  24. package/dist/commonjs/models/components/getorganizationquotaresponse.js.map +1 -0
  25. package/dist/commonjs/models/components/getusagehistoryresponse.d.ts +25 -0
  26. package/dist/commonjs/models/components/getusagehistoryresponse.d.ts.map +1 -0
  27. package/dist/commonjs/models/components/getusagehistoryresponse.js +61 -0
  28. package/dist/commonjs/models/components/getusagehistoryresponse.js.map +1 -0
  29. package/dist/commonjs/models/components/index.d.ts +5 -0
  30. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/index.js +5 -0
  32. package/dist/commonjs/models/components/index.js.map +1 -1
  33. package/dist/commonjs/models/components/organizationquota.d.ts +52 -0
  34. package/dist/commonjs/models/components/organizationquota.d.ts.map +1 -0
  35. package/dist/commonjs/models/components/organizationquota.js +71 -0
  36. package/dist/commonjs/models/components/organizationquota.js.map +1 -0
  37. package/dist/commonjs/models/components/quotatier.d.ts +17 -0
  38. package/dist/commonjs/models/components/quotatier.d.ts.map +1 -0
  39. package/dist/commonjs/models/components/quotatier.js +51 -0
  40. package/dist/commonjs/models/components/quotatier.js.map +1 -0
  41. package/dist/commonjs/models/operations/getorganizationquota.d.ts +34 -0
  42. package/dist/commonjs/models/operations/getorganizationquota.d.ts.map +1 -0
  43. package/dist/commonjs/models/operations/getorganizationquota.js +73 -0
  44. package/dist/commonjs/models/operations/getorganizationquota.js.map +1 -0
  45. package/dist/commonjs/models/operations/getusagehistory.d.ts +41 -0
  46. package/dist/commonjs/models/operations/getusagehistory.d.ts.map +1 -0
  47. package/dist/commonjs/models/operations/getusagehistory.js +77 -0
  48. package/dist/commonjs/models/operations/getusagehistory.js.map +1 -0
  49. package/dist/commonjs/models/operations/index.d.ts +2 -0
  50. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/index.js +2 -0
  52. package/dist/commonjs/models/operations/index.js.map +1 -1
  53. package/dist/commonjs/sdk/quota.d.ts +19 -0
  54. package/dist/commonjs/sdk/quota.d.ts.map +1 -0
  55. package/dist/commonjs/sdk/quota.js +32 -0
  56. package/dist/commonjs/sdk/quota.js.map +1 -0
  57. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  58. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/sdk.js +4 -0
  60. package/dist/commonjs/sdk/sdk.js.map +1 -1
  61. package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts +18 -0
  62. package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts.map +1 -0
  63. package/dist/esm/funcs/quotaGetOrganizationQuota.js +88 -0
  64. package/dist/esm/funcs/quotaGetOrganizationQuota.js.map +1 -0
  65. package/dist/esm/funcs/quotaGetUsageHistory.d.ts +18 -0
  66. package/dist/esm/funcs/quotaGetUsageHistory.d.ts.map +1 -0
  67. package/dist/esm/funcs/quotaGetUsageHistory.js +90 -0
  68. package/dist/esm/funcs/quotaGetUsageHistory.js.map +1 -0
  69. package/dist/esm/lib/config.d.ts +3 -3
  70. package/dist/esm/lib/config.js +3 -3
  71. package/dist/esm/lib/config.js.map +1 -1
  72. package/dist/esm/models/components/createorganizationrequest.d.ts +2 -2
  73. package/dist/esm/models/components/createorganizationrequest.d.ts.map +1 -1
  74. package/dist/esm/models/components/createorganizationrequest.js +1 -1
  75. package/dist/esm/models/components/createorganizationrequest.js.map +1 -1
  76. package/dist/esm/models/components/dailyusage.d.ts +20 -0
  77. package/dist/esm/models/components/dailyusage.d.ts.map +1 -0
  78. package/dist/esm/models/components/dailyusage.js +21 -0
  79. package/dist/esm/models/components/dailyusage.js.map +1 -0
  80. package/dist/esm/models/components/getorganizationquotaresponse.d.ts +17 -0
  81. package/dist/esm/models/components/getorganizationquotaresponse.d.ts.map +1 -0
  82. package/dist/esm/models/components/getorganizationquotaresponse.js +15 -0
  83. package/dist/esm/models/components/getorganizationquotaresponse.js.map +1 -0
  84. package/dist/esm/models/components/getusagehistoryresponse.d.ts +25 -0
  85. package/dist/esm/models/components/getusagehistoryresponse.d.ts.map +1 -0
  86. package/dist/esm/models/components/getusagehistoryresponse.js +24 -0
  87. package/dist/esm/models/components/getusagehistoryresponse.js.map +1 -0
  88. package/dist/esm/models/components/index.d.ts +5 -0
  89. package/dist/esm/models/components/index.d.ts.map +1 -1
  90. package/dist/esm/models/components/index.js +5 -0
  91. package/dist/esm/models/components/index.js.map +1 -1
  92. package/dist/esm/models/components/organizationquota.d.ts +52 -0
  93. package/dist/esm/models/components/organizationquota.d.ts.map +1 -0
  94. package/dist/esm/models/components/organizationquota.js +34 -0
  95. package/dist/esm/models/components/organizationquota.js.map +1 -0
  96. package/dist/esm/models/components/quotatier.d.ts +17 -0
  97. package/dist/esm/models/components/quotatier.d.ts.map +1 -0
  98. package/dist/esm/models/components/quotatier.js +15 -0
  99. package/dist/esm/models/components/quotatier.js.map +1 -0
  100. package/dist/esm/models/operations/getorganizationquota.d.ts +34 -0
  101. package/dist/esm/models/operations/getorganizationquota.d.ts.map +1 -0
  102. package/dist/esm/models/operations/getorganizationquota.js +35 -0
  103. package/dist/esm/models/operations/getorganizationquota.js.map +1 -0
  104. package/dist/esm/models/operations/getusagehistory.d.ts +41 -0
  105. package/dist/esm/models/operations/getusagehistory.d.ts.map +1 -0
  106. package/dist/esm/models/operations/getusagehistory.js +39 -0
  107. package/dist/esm/models/operations/getusagehistory.js.map +1 -0
  108. package/dist/esm/models/operations/index.d.ts +2 -0
  109. package/dist/esm/models/operations/index.d.ts.map +1 -1
  110. package/dist/esm/models/operations/index.js +2 -0
  111. package/dist/esm/models/operations/index.js.map +1 -1
  112. package/dist/esm/sdk/quota.d.ts +19 -0
  113. package/dist/esm/sdk/quota.d.ts.map +1 -0
  114. package/dist/esm/sdk/quota.js +28 -0
  115. package/dist/esm/sdk/quota.js.map +1 -0
  116. package/dist/esm/sdk/sdk.d.ts +3 -0
  117. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  118. package/dist/esm/sdk/sdk.js +4 -0
  119. package/dist/esm/sdk/sdk.js.map +1 -1
  120. package/examples/package-lock.json +1 -1
  121. package/jsr.json +1 -1
  122. package/openapi.json +483 -18
  123. package/package.json +1 -1
  124. package/src/funcs/quotaGetOrganizationQuota.ts +182 -0
  125. package/src/funcs/quotaGetUsageHistory.ts +184 -0
  126. package/src/lib/config.ts +3 -3
  127. package/src/models/components/createorganizationrequest.ts +3 -3
  128. package/src/models/components/dailyusage.ts +48 -0
  129. package/src/models/components/getorganizationquotaresponse.ts +41 -0
  130. package/src/models/components/getusagehistoryresponse.ts +58 -0
  131. package/src/models/components/index.ts +5 -0
  132. package/src/models/components/organizationquota.ts +95 -0
  133. package/src/models/components/quotatier.ts +24 -0
  134. package/src/models/operations/getorganizationquota.ts +93 -0
  135. package/src/models/operations/getusagehistory.ts +100 -0
  136. package/src/models/operations/index.ts +2 -0
  137. package/src/sdk/quota.ts +45 -0
  138. package/src/sdk/sdk.ts +6 -0
package/README.md CHANGED
@@ -200,6 +200,11 @@ run();
200
200
  * [attach](docs/sdks/policies/README.md#attach) - Attach a policy
201
201
  * [detach](docs/sdks/policies/README.md#detach) - Detach a policy
202
202
 
203
+ ### [Quota](docs/sdks/quota/README.md)
204
+
205
+ * [getOrganizationQuota](docs/sdks/quota/README.md#getorganizationquota) - Get organization quota status
206
+ * [getUsageHistory](docs/sdks/quota/README.md#getusagehistory) - Get usage history
207
+
203
208
  ### [Versions](docs/sdks/versions/README.md)
204
209
 
205
210
  * [list](docs/sdks/versions/README.md#list) - List document versions
@@ -239,6 +244,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
239
244
  - [`policiesAttach`](docs/sdks/policies/README.md#attach) - Attach a policy
240
245
  - [`policiesDetach`](docs/sdks/policies/README.md#detach) - Detach a policy
241
246
  - [`policiesList`](docs/sdks/policies/README.md#list) - List document policies
247
+ - [`quotaGetOrganizationQuota`](docs/sdks/quota/README.md#getorganizationquota) - Get organization quota status
248
+ - [`quotaGetUsageHistory`](docs/sdks/quota/README.md#getusagehistory) - Get usage history
242
249
  - [`versionsCreate`](docs/sdks/versions/README.md#create) - Create a new version
243
250
  - [`versionsGet`](docs/sdks/versions/README.md#get) - Retrieve a version
244
251
  - [`versionsList`](docs/sdks/versions/README.md#list) - List document versions
@@ -0,0 +1,18 @@
1
+ import { FactifyCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FactifyError } from "../models/errors/factifyerror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Get organization quota status
13
+ *
14
+ * @remarks
15
+ * Returns the current quota status for an organization including usage, limits, tier, and reset date.
16
+ */
17
+ export declare function quotaGetOrganizationQuota(client: FactifyCore, request?: operations.GetOrganizationQuotaRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.GetOrganizationQuotaResponse, errors.ErrorT | FactifyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=quotaGetOrganizationQuota.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaGetOrganizationQuota.d.ts","sourceRoot":"","sources":["../../../src/funcs/quotaGetOrganizationQuota.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,MAAM,GACb,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,124 @@
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.quotaGetOrganizationQuota = quotaGetOrganizationQuota;
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 organization quota status
52
+ *
53
+ * @remarks
54
+ * Returns the current quota status for an organization including usage, limits, tier, and reset date.
55
+ */
56
+ function quotaGetOrganizationQuota(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.GetOrganizationQuotaRequest$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")();
67
+ const query = (0, encodings_js_1.encodeFormQuery)({
68
+ "organization_id": payload?.organization_id,
69
+ });
70
+ const headers = new Headers((0, primitives_js_1.compactMap)({
71
+ Accept: "application/json",
72
+ }));
73
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.bearerAuth);
74
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
75
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
76
+ const context = {
77
+ options: client._options,
78
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
79
+ operationID: "getOrganizationQuota",
80
+ oAuth2Scopes: null,
81
+ resolvedSecurity: requestSecurity,
82
+ securitySource: client._options.bearerAuth,
83
+ retryConfig: options?.retries
84
+ || client._options.retryConfig
85
+ || { strategy: "none" },
86
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
87
+ };
88
+ const requestRes = client._createRequest(context, {
89
+ security: requestSecurity,
90
+ method: "GET",
91
+ baseURL: options?.serverURL,
92
+ path: path,
93
+ headers: headers,
94
+ query: query,
95
+ body: body,
96
+ userAgent: client._options.userAgent,
97
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
98
+ }, options);
99
+ if (!requestRes.ok) {
100
+ return [requestRes, { status: "invalid" }];
101
+ }
102
+ const req = requestRes.value;
103
+ const doResult = await client._do(req, {
104
+ context,
105
+ errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
106
+ retryConfig: context.retryConfig,
107
+ retryCodes: context.retryCodes,
108
+ });
109
+ if (!doResult.ok) {
110
+ return [doResult, { status: "request-error", request: req }];
111
+ }
112
+ const response = doResult.value;
113
+ const responseFields = {
114
+ HttpMeta: { Response: response, Request: req },
115
+ };
116
+ const [result] = await M.match(M.json(200, operations.GetOrganizationQuotaResponse$inboundSchema, {
117
+ key: "GetOrganizationQuotaResponse",
118
+ }), 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 });
119
+ if (!result.ok) {
120
+ return [result, { status: "complete", request: req, response }];
121
+ }
122
+ return [result, { status: "complete", request: req, response }];
123
+ }
124
+ //# sourceMappingURL=quotaGetOrganizationQuota.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaGetOrganizationQuota.js","sourceRoot":"","sources":["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AAC,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"}
@@ -0,0 +1,18 @@
1
+ import { FactifyCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FactifyError } from "../models/errors/factifyerror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Get usage history
13
+ *
14
+ * @remarks
15
+ * Returns daily usage records for an organization within a specified date range.
16
+ */
17
+ export declare function quotaGetUsageHistory(client: FactifyCore, request?: operations.GetUsageHistoryRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.GetUsageHistoryResponse, errors.ErrorT | FactifyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=quotaGetUsageHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotaGetUsageHistory.d.ts","sourceRoot":"","sources":["../../../src/funcs/quotaGetUsageHistory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAKzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,MAAM,CAAC,MAAM,GACb,YAAY,GACZ,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,126 @@
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
@@ -0,0 +1 @@
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,C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MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,qCAAqC,EAAE;QAC5D,GAAG,EAAE,yBAAyB;KAC/B,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAC5D,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,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"}
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.0.0";
34
- readonly sdkVersion: "0.3.11";
35
- readonly genVersion: "2.794.1";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.3.11 2.794.1 1.0.0 @factify/sdk";
34
+ readonly sdkVersion: "0.3.13-rc.1";
35
+ readonly genVersion: "2.799.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.3.13-rc.1 2.799.0 1.0.0 @factify/sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
35
35
  exports.SDK_METADATA = {
36
36
  language: "typescript",
37
37
  openapiDocVersion: "1.0.0",
38
- sdkVersion: "0.3.11",
39
- genVersion: "2.794.1",
40
- userAgent: "speakeasy-sdk/typescript 0.3.11 2.794.1 1.0.0 @factify/sdk",
38
+ sdkVersion: "0.3.13-rc.1",
39
+ genVersion: "2.799.0",
40
+ userAgent: "speakeasy-sdk/typescript 0.3.13-rc.1 2.799.0 1.0.0 @factify/sdk",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAvDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,yBAAyB;IACzB;;OAEG;IACH,6BAA6B;CACrB,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAvDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,yBAAyB;IACzB;;OAEG;IACH,6BAA6B;CACrB,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,iEAAiE;CACpE,CAAC"}
@@ -15,12 +15,12 @@ export type CreateOrganizationRequest = {
15
15
  * Required when the caller is a service account (service accounts cannot own organizations).
16
16
  * Pattern: user_[0-9a-hjkmnp-tv-z]{26}
17
17
  */
18
- ownerUserId?: string | undefined;
18
+ ownerUserId?: string | null | undefined;
19
19
  };
20
20
  /** @internal */
21
21
  export type CreateOrganizationRequest$Outbound = {
22
22
  name: string;
23
- owner_user_id?: string | undefined;
23
+ owner_user_id?: string | null | undefined;
24
24
  };
25
25
  /** @internal */
26
26
  export declare const CreateOrganizationRequest$outboundSchema: z.ZodMiniType<CreateOrganizationRequest$Outbound, CreateOrganizationRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"createorganizationrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createorganizationrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAW1B,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
1
+ {"version":3,"file":"createorganizationrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createorganizationrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,kCAAkC,EAClC,yBAAyB,CAW1B,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
43
43
  /** @internal */
44
44
  exports.CreateOrganizationRequest$outboundSchema = z.pipe(z.object({
45
45
  name: z.string(),
46
- ownerUserId: z.optional(z.string()),
46
+ ownerUserId: z.optional(z.nullable(z.string())),
47
47
  }), z.transform((v) => {
48
48
  return (0, primitives_js_1.remap)(v, {
49
49
  ownerUserId: "owner_user_id",
@@ -1 +1 @@
1
- {"version":3,"file":"createorganizationrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createorganizationrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,0EAMC;AAlDD,+CAAiC;AACjC,2DAA0D;AA2B1D,gBAAgB;AACH,QAAA,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,eAAe;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createorganizationrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createorganizationrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,0EAMC;AAlDD,+CAAiC;AACjC,2DAA0D;AA2B1D,gBAAgB;AACH,QAAA,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAChD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,eAAe;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,20 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,58 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,52 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,25 @@
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
@@ -0,0 +1 @@
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"}