@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,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,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import { DailyUsage$inboundSchema } from "./dailyusage.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const GetUsageHistoryResponse$inboundSchema = z.pipe(z.object({
|
|
11
|
-
daily_usage: types.optional(z.array(DailyUsage$inboundSchema)),
|
|
12
|
-
organization_id: types.optional(types.string()),
|
|
13
|
-
total_requests: types.optional(types.number()),
|
|
14
|
-
}), z.transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
"daily_usage": "dailyUsage",
|
|
17
|
-
"organization_id": "organizationId",
|
|
18
|
-
"total_requests": "totalRequests",
|
|
19
|
-
});
|
|
20
|
-
}));
|
|
21
|
-
export function getUsageHistoryResponseFromJSON(jsonString) {
|
|
22
|
-
return safeParse(jsonString, (x) => GetUsageHistoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUsageHistoryResponse' from JSON`);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=getusagehistoryresponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getusagehistoryresponse.js","sourceRoot":"","sources":["../../../../src/models/components/getusagehistoryresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAc,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAoBvE,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,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,MAAM,CAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,iBAAiB,EAAE,gBAAgB;QACnC,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,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,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import { QuotaTier$inboundSchema } from "./quotatier.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const OrganizationQuota$inboundSchema = z.pipe(z.object({
|
|
11
|
-
current_usage: types.optional(types.number()),
|
|
12
|
-
effective_limit: types.optional(types.number()),
|
|
13
|
-
is_exceeded: types.optional(types.boolean()),
|
|
14
|
-
organization_id: types.optional(types.string()),
|
|
15
|
-
period_start: types.optional(types.date()),
|
|
16
|
-
remaining: types.optional(types.number()),
|
|
17
|
-
reset_at: types.optional(types.date()),
|
|
18
|
-
tier: types.optional(QuotaTier$inboundSchema),
|
|
19
|
-
usage_percent: types.optional(types.number()),
|
|
20
|
-
}), z.transform((v) => {
|
|
21
|
-
return remap$(v, {
|
|
22
|
-
"current_usage": "currentUsage",
|
|
23
|
-
"effective_limit": "effectiveLimit",
|
|
24
|
-
"is_exceeded": "isExceeded",
|
|
25
|
-
"organization_id": "organizationId",
|
|
26
|
-
"period_start": "periodStart",
|
|
27
|
-
"reset_at": "resetAt",
|
|
28
|
-
"usage_percent": "usagePercent",
|
|
29
|
-
});
|
|
30
|
-
}));
|
|
31
|
-
export function organizationQuotaFromJSON(jsonString) {
|
|
32
|
-
return safeParse(jsonString, (x) => OrganizationQuota$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OrganizationQuota' from JSON`);
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=organizationquota.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organizationquota.js","sourceRoot":"","sources":["../../../../src/models/components/organizationquota.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAa,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AA+CpE,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC7C,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC/C,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC5C,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC/C,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1C,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACtC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAC7C,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC9C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;QAC/B,iBAAiB,EAAE,gBAAgB;QACnC,aAAa,EAAE,YAAY;QAC3B,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,aAAa;QAC7B,UAAU,EAAE,SAAS;QACrB,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,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,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as openEnums from "../../types/enums.js";
|
|
5
|
-
/**
|
|
6
|
-
* QuotaTier represents the organization's quota tier.
|
|
7
|
-
*/
|
|
8
|
-
export const QuotaTier = {
|
|
9
|
-
QuotaTierUnspecified: "QUOTA_TIER_UNSPECIFIED",
|
|
10
|
-
QuotaTierFree: "QUOTA_TIER_FREE",
|
|
11
|
-
QuotaTierCustom: "QUOTA_TIER_CUSTOM",
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const QuotaTier$inboundSchema = openEnums.inboundSchema(QuotaTier);
|
|
15
|
-
//# 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,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,oBAAoB,EAAE,wBAAwB;IAC9C,aAAa,EAAE,iBAAiB;IAChC,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAClC,SAAS,CAAC,aAAa,CAAC,SAAS,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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getorganizationquota.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getorganizationquota.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,4BAA4B,CAAC,EACzB,UAAU,CAAC,4BAA4B,GACvC,SAAS,CAAC;IACd,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,oCAAoC,EACpC,2BAA2B,CAU5B,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAgBR,CAAC;AAEF,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import * as components from "../components/index.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const GetOrganizationQuotaRequest$outboundSchema = z.pipe(z.object({
|
|
11
|
-
organizationId: z.optional(z.string()),
|
|
12
|
-
}), z.transform((v) => {
|
|
13
|
-
return remap$(v, {
|
|
14
|
-
organizationId: "organization_id",
|
|
15
|
-
});
|
|
16
|
-
}));
|
|
17
|
-
export function getOrganizationQuotaRequestToJSON(getOrganizationQuotaRequest) {
|
|
18
|
-
return JSON.stringify(GetOrganizationQuotaRequest$outboundSchema.parse(getOrganizationQuotaRequest));
|
|
19
|
-
}
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const GetOrganizationQuotaResponse$inboundSchema = z.pipe(z.object({
|
|
22
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
23
|
-
GetOrganizationQuotaResponse: types.optional(components.GetOrganizationQuotaResponse$inboundSchema),
|
|
24
|
-
Headers: z._default(z.record(z.string(), z.array(z.string())), {}),
|
|
25
|
-
}), z.transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
"HttpMeta": "httpMeta",
|
|
28
|
-
"GetOrganizationQuotaResponse": "getOrganizationQuotaResponse",
|
|
29
|
-
"Headers": "headers",
|
|
30
|
-
});
|
|
31
|
-
}));
|
|
32
|
-
export function getOrganizationQuotaResponseFromJSON(jsonString) {
|
|
33
|
-
return safeParse(jsonString, (x) => GetOrganizationQuotaResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrganizationQuotaResponse' from JSON`);
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=getorganizationquota.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getorganizationquota.js","sourceRoot":"","sources":["../../../../src/models/operations/getorganizationquota.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA6BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAGnD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,4BAA4B,EAAE,KAAK,CAAC,QAAQ,CAC1C,UAAU,CAAC,0CAA0C,CACtD;IACD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACnE,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,8BAA8B,EAAE,8BAA8B;QAC9D,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,41 +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 GetUsageHistoryRequest = {
|
|
6
|
-
/**
|
|
7
|
-
* Optional: organization ID to query. If not provided, uses the caller's organization.
|
|
8
|
-
*/
|
|
9
|
-
organizationId?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Start date for the history (inclusive, YYYY-MM-DD format).
|
|
12
|
-
*/
|
|
13
|
-
startDate?: string | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* End date for the history (exclusive, YYYY-MM-DD format).
|
|
16
|
-
*/
|
|
17
|
-
endDate?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
export type GetUsageHistoryResponse = {
|
|
20
|
-
httpMeta: components.HTTPMetadata;
|
|
21
|
-
/**
|
|
22
|
-
* Success
|
|
23
|
-
*/
|
|
24
|
-
getUsageHistoryResponse?: components.GetUsageHistoryResponse | undefined;
|
|
25
|
-
headers: {
|
|
26
|
-
[k: string]: Array<string>;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
/** @internal */
|
|
30
|
-
export type GetUsageHistoryRequest$Outbound = {
|
|
31
|
-
organization_id?: string | undefined;
|
|
32
|
-
start_date?: string | undefined;
|
|
33
|
-
end_date?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const GetUsageHistoryRequest$outboundSchema: z.ZodMiniType<GetUsageHistoryRequest$Outbound, GetUsageHistoryRequest>;
|
|
37
|
-
export declare function getUsageHistoryRequestToJSON(getUsageHistoryRequest: GetUsageHistoryRequest): string;
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const GetUsageHistoryResponse$inboundSchema: z.ZodMiniType<GetUsageHistoryResponse, unknown>;
|
|
40
|
-
export declare function getUsageHistoryResponseFromJSON(jsonString: string): SafeParseResult<GetUsageHistoryResponse, SDKValidationError>;
|
|
41
|
-
//# sourceMappingURL=getusagehistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getusagehistory.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getusagehistory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,uBAAuB,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,CAAC;IACzE,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,+BAA+B,EAC/B,sBAAsB,CAcvB,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAgBR,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import * as components from "../components/index.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const GetUsageHistoryRequest$outboundSchema = z.pipe(z.object({
|
|
11
|
-
organizationId: z.optional(z.string()),
|
|
12
|
-
startDate: z.optional(z.string()),
|
|
13
|
-
endDate: z.optional(z.string()),
|
|
14
|
-
}), z.transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
organizationId: "organization_id",
|
|
17
|
-
startDate: "start_date",
|
|
18
|
-
endDate: "end_date",
|
|
19
|
-
});
|
|
20
|
-
}));
|
|
21
|
-
export function getUsageHistoryRequestToJSON(getUsageHistoryRequest) {
|
|
22
|
-
return JSON.stringify(GetUsageHistoryRequest$outboundSchema.parse(getUsageHistoryRequest));
|
|
23
|
-
}
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const GetUsageHistoryResponse$inboundSchema = z.pipe(z.object({
|
|
26
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
-
GetUsageHistoryResponse: types.optional(components.GetUsageHistoryResponse$inboundSchema),
|
|
28
|
-
Headers: z._default(z.record(z.string(), z.array(z.string())), {}),
|
|
29
|
-
}), z.transform((v) => {
|
|
30
|
-
return remap$(v, {
|
|
31
|
-
"HttpMeta": "httpMeta",
|
|
32
|
-
"GetUsageHistoryResponse": "getUsageHistoryResponse",
|
|
33
|
-
"Headers": "headers",
|
|
34
|
-
});
|
|
35
|
-
}));
|
|
36
|
-
export function getUsageHistoryResponseFromJSON(jsonString) {
|
|
37
|
-
return safeParse(jsonString, (x) => GetUsageHistoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUsageHistoryResponse' from JSON`);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=getusagehistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getusagehistory.js","sourceRoot":"","sources":["../../../../src/models/operations/getusagehistory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAkCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,uBAAuB,EAAE,KAAK,CAAC,QAAQ,CACrC,UAAU,CAAC,qCAAqC,CACjD;IACD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACnE,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,yBAAyB,EAAE,yBAAyB;QACpD,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
package/dist/esm/sdk/quota.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Quota extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Get organization quota status
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Returns the current quota status for an organization including usage, limits, tier, and reset date.
|
|
9
|
-
*/
|
|
10
|
-
getOrganizationQuota(request?: operations.GetOrganizationQuotaRequest | undefined, options?: RequestOptions): Promise<operations.GetOrganizationQuotaResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Get usage history
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Returns daily usage records for an organization within a specified date range.
|
|
16
|
-
*/
|
|
17
|
-
getUsageHistory(request?: operations.GetUsageHistoryRequest | undefined, options?: RequestOptions): Promise<operations.GetUsageHistoryResponse>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=quota.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quota.d.ts","sourceRoot":"","sources":["../../../src/sdk/quota.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,EAC5D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,eAAe,CACnB,OAAO,CAAC,EAAE,UAAU,CAAC,sBAAsB,GAAG,SAAS,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAO/C"}
|
package/dist/esm/sdk/quota.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { quotaGetOrganizationQuota } from "../funcs/quotaGetOrganizationQuota.js";
|
|
5
|
-
import { quotaGetUsageHistory } from "../funcs/quotaGetUsageHistory.js";
|
|
6
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
7
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
8
|
-
export class Quota extends ClientSDK {
|
|
9
|
-
/**
|
|
10
|
-
* Get organization quota status
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Returns the current quota status for an organization including usage, limits, tier, and reset date.
|
|
14
|
-
*/
|
|
15
|
-
async getOrganizationQuota(request, options) {
|
|
16
|
-
return unwrapAsync(quotaGetOrganizationQuota(this, request, options));
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get usage history
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Returns daily usage records for an organization within a specified date range.
|
|
23
|
-
*/
|
|
24
|
-
async getUsageHistory(request, options) {
|
|
25
|
-
return unwrapAsync(quotaGetUsageHistory(this, request, options));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=quota.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quota.js","sourceRoot":"","sources":["../../../src/sdk/quota.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA4D,EAC5D,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAAuD,EACvD,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { FactifyCore } from "../core.js";
|
|
7
|
-
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import { FactifyError } from "../models/errors/factifyerror.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Get organization quota status
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Returns the current quota status for an organization including usage, limits, tier, and reset date.
|
|
34
|
-
*/
|
|
35
|
-
export function quotaGetOrganizationQuota(
|
|
36
|
-
client: FactifyCore,
|
|
37
|
-
request?: operations.GetOrganizationQuotaRequest | undefined,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): APIPromise<
|
|
40
|
-
Result<
|
|
41
|
-
operations.GetOrganizationQuotaResponse,
|
|
42
|
-
| errors.ErrorT
|
|
43
|
-
| FactifyError
|
|
44
|
-
| ResponseValidationError
|
|
45
|
-
| ConnectionError
|
|
46
|
-
| RequestAbortedError
|
|
47
|
-
| RequestTimeoutError
|
|
48
|
-
| InvalidRequestError
|
|
49
|
-
| UnexpectedClientError
|
|
50
|
-
| SDKValidationError
|
|
51
|
-
>
|
|
52
|
-
> {
|
|
53
|
-
return new APIPromise($do(
|
|
54
|
-
client,
|
|
55
|
-
request,
|
|
56
|
-
options,
|
|
57
|
-
));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
async function $do(
|
|
61
|
-
client: FactifyCore,
|
|
62
|
-
request?: operations.GetOrganizationQuotaRequest | undefined,
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): Promise<
|
|
65
|
-
[
|
|
66
|
-
Result<
|
|
67
|
-
operations.GetOrganizationQuotaResponse,
|
|
68
|
-
| errors.ErrorT
|
|
69
|
-
| FactifyError
|
|
70
|
-
| ResponseValidationError
|
|
71
|
-
| ConnectionError
|
|
72
|
-
| RequestAbortedError
|
|
73
|
-
| RequestTimeoutError
|
|
74
|
-
| InvalidRequestError
|
|
75
|
-
| UnexpectedClientError
|
|
76
|
-
| SDKValidationError
|
|
77
|
-
>,
|
|
78
|
-
APICall,
|
|
79
|
-
]
|
|
80
|
-
> {
|
|
81
|
-
const parsed = safeParse(
|
|
82
|
-
request,
|
|
83
|
-
(value) =>
|
|
84
|
-
z.parse(
|
|
85
|
-
z.optional(operations.GetOrganizationQuotaRequest$outboundSchema),
|
|
86
|
-
value,
|
|
87
|
-
),
|
|
88
|
-
"Input validation failed",
|
|
89
|
-
);
|
|
90
|
-
if (!parsed.ok) {
|
|
91
|
-
return [parsed, { status: "invalid" }];
|
|
92
|
-
}
|
|
93
|
-
const payload = parsed.value;
|
|
94
|
-
const body = null;
|
|
95
|
-
|
|
96
|
-
const path = pathToFunc("/v1beta/quota")();
|
|
97
|
-
|
|
98
|
-
const query = encodeFormQuery({
|
|
99
|
-
"organization_id": payload?.organization_id,
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
const headers = new Headers(compactMap({
|
|
103
|
-
Accept: "application/json",
|
|
104
|
-
}));
|
|
105
|
-
|
|
106
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
107
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
108
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
-
|
|
110
|
-
const context = {
|
|
111
|
-
options: client._options,
|
|
112
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
|
-
operationID: "getOrganizationQuota",
|
|
114
|
-
oAuth2Scopes: null,
|
|
115
|
-
|
|
116
|
-
resolvedSecurity: requestSecurity,
|
|
117
|
-
|
|
118
|
-
securitySource: client._options.bearerAuth,
|
|
119
|
-
retryConfig: options?.retries
|
|
120
|
-
|| client._options.retryConfig
|
|
121
|
-
|| { strategy: "none" },
|
|
122
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
const requestRes = client._createRequest(context, {
|
|
126
|
-
security: requestSecurity,
|
|
127
|
-
method: "GET",
|
|
128
|
-
baseURL: options?.serverURL,
|
|
129
|
-
path: path,
|
|
130
|
-
headers: headers,
|
|
131
|
-
query: query,
|
|
132
|
-
body: body,
|
|
133
|
-
userAgent: client._options.userAgent,
|
|
134
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
-
}, options);
|
|
136
|
-
if (!requestRes.ok) {
|
|
137
|
-
return [requestRes, { status: "invalid" }];
|
|
138
|
-
}
|
|
139
|
-
const req = requestRes.value;
|
|
140
|
-
|
|
141
|
-
const doResult = await client._do(req, {
|
|
142
|
-
context,
|
|
143
|
-
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
144
|
-
retryConfig: context.retryConfig,
|
|
145
|
-
retryCodes: context.retryCodes,
|
|
146
|
-
});
|
|
147
|
-
if (!doResult.ok) {
|
|
148
|
-
return [doResult, { status: "request-error", request: req }];
|
|
149
|
-
}
|
|
150
|
-
const response = doResult.value;
|
|
151
|
-
|
|
152
|
-
const responseFields = {
|
|
153
|
-
HttpMeta: { Response: response, Request: req },
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const [result] = await M.match<
|
|
157
|
-
operations.GetOrganizationQuotaResponse,
|
|
158
|
-
| errors.ErrorT
|
|
159
|
-
| FactifyError
|
|
160
|
-
| ResponseValidationError
|
|
161
|
-
| ConnectionError
|
|
162
|
-
| RequestAbortedError
|
|
163
|
-
| RequestTimeoutError
|
|
164
|
-
| InvalidRequestError
|
|
165
|
-
| UnexpectedClientError
|
|
166
|
-
| SDKValidationError
|
|
167
|
-
>(
|
|
168
|
-
M.json(200, operations.GetOrganizationQuotaResponse$inboundSchema, {
|
|
169
|
-
key: "GetOrganizationQuotaResponse",
|
|
170
|
-
}),
|
|
171
|
-
M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema),
|
|
172
|
-
M.jsonErr(429, errors.ErrorT$inboundSchema, { hdrs: true }),
|
|
173
|
-
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
174
|
-
M.fail("4XX"),
|
|
175
|
-
M.fail("5XX"),
|
|
176
|
-
)(response, req, { extraFields: responseFields });
|
|
177
|
-
if (!result.ok) {
|
|
178
|
-
return [result, { status: "complete", request: req, response }];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return [result, { status: "complete", request: req, response }];
|
|
182
|
-
}
|