@paygentic/sdk 0.10.2 → 0.10.4
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 +19 -62
- package/dist/commonjs/funcs/meGetMe.d.ts +18 -0
- package/dist/commonjs/funcs/meGetMe.d.ts.map +1 -0
- package/dist/commonjs/funcs/meGetMe.js +108 -0
- package/dist/commonjs/funcs/meGetMe.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/costreportresponse.d.ts +14 -2
- package/dist/commonjs/models/costreportresponse.d.ts.map +1 -1
- package/dist/commonjs/models/costreportresponse.js.map +1 -1
- package/dist/commonjs/models/errors/error.d.ts +6 -0
- package/dist/commonjs/models/errors/error.d.ts.map +1 -1
- package/dist/commonjs/models/errors/error.js +3 -0
- package/dist/commonjs/models/errors/error.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/me.d.ts +34 -0
- package/dist/commonjs/models/me.d.ts.map +1 -0
- package/dist/commonjs/models/me.js +63 -0
- package/dist/commonjs/models/me.js.map +1 -0
- package/dist/commonjs/models/mecredential.d.ts +31 -0
- package/dist/commonjs/models/mecredential.d.ts.map +1 -0
- package/dist/commonjs/models/mecredential.js +60 -0
- package/dist/commonjs/models/mecredential.js.map +1 -0
- package/dist/commonjs/models/operations/getcostreport.d.ts +2 -2
- package/dist/commonjs/models/operations/getcostsummary.d.ts +2 -2
- package/dist/commonjs/models/operations/getprofitability.d.ts +2 -2
- package/dist/commonjs/models/operations/getrevenue.d.ts +2 -2
- package/dist/commonjs/models/operations/listentitlements.d.ts +16 -0
- package/dist/commonjs/models/operations/listentitlements.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listentitlements.js +11 -1
- package/dist/commonjs/models/operations/listentitlements.js.map +1 -1
- package/dist/commonjs/models/outstandingblock.d.ts +5 -1
- package/dist/commonjs/models/outstandingblock.d.ts.map +1 -1
- package/dist/commonjs/models/outstandingblock.js +1 -0
- package/dist/commonjs/models/outstandingblock.js.map +1 -1
- package/dist/commonjs/models/permission.d.ts +113 -0
- package/dist/commonjs/models/permission.d.ts.map +1 -0
- package/dist/commonjs/models/permission.js +148 -0
- package/dist/commonjs/models/permission.js.map +1 -0
- package/dist/commonjs/models/profitabilitysummaryresponse.d.ts +4 -4
- package/dist/commonjs/models/revenueaccountrow.d.ts +1 -1
- package/dist/commonjs/models/revenueaccounttotal.d.ts +1 -1
- package/dist/commonjs/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/commonjs/sdk/me.d.ts +12 -0
- package/dist/commonjs/sdk/me.d.ts.map +1 -0
- package/dist/commonjs/sdk/me.js +22 -0
- package/dist/commonjs/sdk/me.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/meGetMe.d.ts +18 -0
- package/dist/esm/funcs/meGetMe.d.ts.map +1 -0
- package/dist/esm/funcs/meGetMe.js +72 -0
- package/dist/esm/funcs/meGetMe.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/costreportresponse.d.ts +14 -2
- package/dist/esm/models/costreportresponse.d.ts.map +1 -1
- package/dist/esm/models/costreportresponse.js.map +1 -1
- package/dist/esm/models/errors/error.d.ts +6 -0
- package/dist/esm/models/errors/error.d.ts.map +1 -1
- package/dist/esm/models/errors/error.js +3 -0
- package/dist/esm/models/errors/error.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/me.d.ts +34 -0
- package/dist/esm/models/me.d.ts.map +1 -0
- package/dist/esm/models/me.js +26 -0
- package/dist/esm/models/me.js.map +1 -0
- package/dist/esm/models/mecredential.d.ts +31 -0
- package/dist/esm/models/mecredential.d.ts.map +1 -0
- package/dist/esm/models/mecredential.js +23 -0
- package/dist/esm/models/mecredential.js.map +1 -0
- package/dist/esm/models/operations/getcostreport.d.ts +2 -2
- package/dist/esm/models/operations/getcostsummary.d.ts +2 -2
- package/dist/esm/models/operations/getprofitability.d.ts +2 -2
- package/dist/esm/models/operations/getrevenue.d.ts +2 -2
- package/dist/esm/models/operations/listentitlements.d.ts +16 -0
- package/dist/esm/models/operations/listentitlements.d.ts.map +1 -1
- package/dist/esm/models/operations/listentitlements.js +9 -0
- package/dist/esm/models/operations/listentitlements.js.map +1 -1
- package/dist/esm/models/outstandingblock.d.ts +5 -1
- package/dist/esm/models/outstandingblock.d.ts.map +1 -1
- package/dist/esm/models/outstandingblock.js +1 -0
- package/dist/esm/models/outstandingblock.js.map +1 -1
- package/dist/esm/models/permission.d.ts +113 -0
- package/dist/esm/models/permission.d.ts.map +1 -0
- package/dist/esm/models/permission.js +112 -0
- package/dist/esm/models/permission.js.map +1 -0
- package/dist/esm/models/profitabilitysummaryresponse.d.ts +4 -4
- package/dist/esm/models/revenueaccountrow.d.ts +1 -1
- package/dist/esm/models/revenueaccounttotal.d.ts +1 -1
- package/dist/esm/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/esm/sdk/me.d.ts +12 -0
- package/dist/esm/sdk/me.d.ts.map +1 -0
- package/dist/esm/sdk/me.js +18 -0
- package/dist/esm/sdk/me.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/meGetMe.ts +151 -0
- package/src/lib/config.ts +2 -2
- package/src/models/costreportresponse.ts +14 -2
- package/src/models/errors/error.ts +6 -0
- package/src/models/index.ts +3 -0
- package/src/models/me.ts +60 -0
- package/src/models/mecredential.ts +58 -0
- package/src/models/operations/getcostreport.ts +2 -2
- package/src/models/operations/getcostsummary.ts +2 -2
- package/src/models/operations/getprofitability.ts +2 -2
- package/src/models/operations/getrevenue.ts +2 -2
- package/src/models/operations/listentitlements.ts +33 -0
- package/src/models/outstandingblock.ts +6 -1
- package/src/models/permission.ts +119 -0
- package/src/models/profitabilitysummaryresponse.ts +4 -4
- package/src/models/revenueaccountrow.ts +1 -1
- package/src/models/revenueaccounttotal.ts +1 -1
- package/src/models/revenuesummaryresponse.ts +2 -2
- package/src/sdk/me.ts +25 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const MeCredentialType: {
|
|
6
|
+
readonly Session: "session";
|
|
7
|
+
readonly ApiKey: "apiKey";
|
|
8
|
+
readonly Oauth: "oauth";
|
|
9
|
+
readonly System: "system";
|
|
10
|
+
};
|
|
11
|
+
export type MeCredentialType = ClosedEnum<typeof MeCredentialType>;
|
|
12
|
+
/**
|
|
13
|
+
* The credential of the call. clientId is set for an OAuth token and apiKeyId for an API key.
|
|
14
|
+
*/
|
|
15
|
+
export type MeCredential = {
|
|
16
|
+
type: MeCredentialType;
|
|
17
|
+
/**
|
|
18
|
+
* The OAuth client of the token.
|
|
19
|
+
*/
|
|
20
|
+
clientId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The API key of the call.
|
|
23
|
+
*/
|
|
24
|
+
apiKeyId?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const MeCredentialType$inboundSchema: z.ZodNativeEnum<typeof MeCredentialType>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const MeCredential$inboundSchema: z.ZodType<MeCredential, z.ZodTypeDef, unknown>;
|
|
30
|
+
export declare function meCredentialFromJSON(jsonString: string): SafeParseResult<MeCredential, SDKValidationError>;
|
|
31
|
+
//# sourceMappingURL=mecredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mecredential.d.ts","sourceRoot":"","sources":["../../../src/models/mecredential.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.MeCredential$inboundSchema = exports.MeCredentialType$inboundSchema = exports.MeCredentialType = void 0;
|
|
40
|
+
exports.meCredentialFromJSON = meCredentialFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
43
|
+
exports.MeCredentialType = {
|
|
44
|
+
Session: "session",
|
|
45
|
+
ApiKey: "apiKey",
|
|
46
|
+
Oauth: "oauth",
|
|
47
|
+
System: "system",
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.MeCredentialType$inboundSchema = z.nativeEnum(exports.MeCredentialType);
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.MeCredential$inboundSchema = z.object({
|
|
53
|
+
type: exports.MeCredentialType$inboundSchema,
|
|
54
|
+
clientId: z.string().optional(),
|
|
55
|
+
apiKeyId: z.string().optional(),
|
|
56
|
+
});
|
|
57
|
+
function meCredentialFromJSON(jsonString) {
|
|
58
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MeCredential$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MeCredential' from JSON`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=mecredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mecredential.js","sourceRoot":"","sources":["../../../src/models/mecredential.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,oDAQC;AArDD,0CAA4B;AAC5B,kDAA8C;AAKjC,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAkBX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,sCAA8B;IACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -40,11 +40,11 @@ export type GetCostReportRequest = {
|
|
|
40
40
|
*/
|
|
41
41
|
merchantId?: string | undefined;
|
|
42
42
|
/**
|
|
43
|
-
* Start of the query window (ISO 8601).
|
|
43
|
+
* Start of the query window, included (ISO 8601).
|
|
44
44
|
*/
|
|
45
45
|
from: Date;
|
|
46
46
|
/**
|
|
47
|
-
* End of the query window (ISO 8601).
|
|
47
|
+
* End of the query window, excluded: the read counts from <= t < to (ISO 8601).
|
|
48
48
|
*/
|
|
49
49
|
to: Date;
|
|
50
50
|
/**
|
|
@@ -22,11 +22,11 @@ export type GetCostSummaryRequest = {
|
|
|
22
22
|
*/
|
|
23
23
|
subject?: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* Start of the query window (ISO 8601). Required together with 'to'.
|
|
25
|
+
* Start of the query window, included (ISO 8601). Required together with 'to'.
|
|
26
26
|
*/
|
|
27
27
|
from: Date;
|
|
28
28
|
/**
|
|
29
|
-
* End of the query window (ISO 8601). Required together with 'from'.
|
|
29
|
+
* End of the query window, excluded: the read counts from <= t < to (ISO 8601). Required together with 'from'.
|
|
30
30
|
*/
|
|
31
31
|
to: Date;
|
|
32
32
|
/**
|
|
@@ -5,11 +5,11 @@ export type GetProfitabilityRequest = {
|
|
|
5
5
|
*/
|
|
6
6
|
merchantId: string;
|
|
7
7
|
/**
|
|
8
|
-
* Start of the
|
|
8
|
+
* Start of the read window, included (ISO 8601 format)
|
|
9
9
|
*/
|
|
10
10
|
from: Date;
|
|
11
11
|
/**
|
|
12
|
-
* End of the
|
|
12
|
+
* End of the read window, excluded: the read counts from <= t < to, so a month ends at the first instant of the next month (ISO 8601 format)
|
|
13
13
|
*/
|
|
14
14
|
to: Date;
|
|
15
15
|
/**
|
|
@@ -37,11 +37,11 @@ export declare const PeriodBasis: {
|
|
|
37
37
|
export type PeriodBasis = ClosedEnum<typeof PeriodBasis>;
|
|
38
38
|
export type GetRevenueRequest = {
|
|
39
39
|
/**
|
|
40
|
-
* Start of the
|
|
40
|
+
* Start of the read window, included (ISO 8601 format)
|
|
41
41
|
*/
|
|
42
42
|
startTime: Date;
|
|
43
43
|
/**
|
|
44
|
-
* End of the
|
|
44
|
+
* End of the read window, excluded: the read counts startTime <= t < endTime, so a month ends at the first instant of the next month (ISO 8601 format)
|
|
45
45
|
*/
|
|
46
46
|
endTime: Date;
|
|
47
47
|
/**
|
|
@@ -45,6 +45,15 @@ export declare const ListEntitlementsObject: {
|
|
|
45
45
|
readonly List: "list";
|
|
46
46
|
};
|
|
47
47
|
export type ListEntitlementsObject = ClosedEnum<typeof ListEntitlementsObject>;
|
|
48
|
+
/**
|
|
49
|
+
* Present only when the database can't be reached, or the list takes more than a second to compute. The response is then the last result for this same request in the past hour, computed at `computedAt`.
|
|
50
|
+
*/
|
|
51
|
+
export type Stale = {
|
|
52
|
+
/**
|
|
53
|
+
* When this result was computed.
|
|
54
|
+
*/
|
|
55
|
+
computedAt: Date;
|
|
56
|
+
};
|
|
48
57
|
/**
|
|
49
58
|
* Successfully retrieved the list of entitlements for the customer.
|
|
50
59
|
*/
|
|
@@ -58,6 +67,10 @@ export type ListEntitlementsResponse = {
|
|
|
58
67
|
* Offset-based pagination response.
|
|
59
68
|
*/
|
|
60
69
|
pagination: models.OffsetPagination;
|
|
70
|
+
/**
|
|
71
|
+
* Present only when the database can't be reached, or the list takes more than a second to compute. The response is then the last result for this same request in the past hour, computed at `computedAt`.
|
|
72
|
+
*/
|
|
73
|
+
stale?: Stale | undefined;
|
|
61
74
|
};
|
|
62
75
|
/** @internal */
|
|
63
76
|
export type ListEntitlementsRequest$Outbound = {
|
|
@@ -77,6 +90,9 @@ export declare function listEntitlementsRequestToJSON(listEntitlementsRequest: L
|
|
|
77
90
|
/** @internal */
|
|
78
91
|
export declare const ListEntitlementsObject$inboundSchema: z.ZodNativeEnum<typeof ListEntitlementsObject>;
|
|
79
92
|
/** @internal */
|
|
93
|
+
export declare const Stale$inboundSchema: z.ZodType<Stale, z.ZodTypeDef, unknown>;
|
|
94
|
+
export declare function staleFromJSON(jsonString: string): SafeParseResult<Stale, SDKValidationError>;
|
|
95
|
+
/** @internal */
|
|
80
96
|
export declare const ListEntitlementsResponse$inboundSchema: z.ZodType<ListEntitlementsResponse, z.ZodTypeDef, unknown>;
|
|
81
97
|
export declare function listEntitlementsResponseFromJSON(jsonString: string): SafeParseResult<ListEntitlementsResponse, SDKValidationError>;
|
|
82
98
|
//# sourceMappingURL=listentitlements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listentitlements.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listentitlements.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAEzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,sBAAsB,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"listentitlements.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listentitlements.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC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,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAWvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,aAAa,CAChE,OAAO,sBAAsB,CACS,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAKpE,CAAC;AAEL,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ListEntitlementsResponse$inboundSchema = exports.ListEntitlementsObject$inboundSchema = exports.ListEntitlementsRequest$outboundSchema = exports.ListEntitlementsObject = void 0;
|
|
39
|
+
exports.ListEntitlementsResponse$inboundSchema = exports.Stale$inboundSchema = exports.ListEntitlementsObject$inboundSchema = exports.ListEntitlementsRequest$outboundSchema = exports.ListEntitlementsObject = void 0;
|
|
40
40
|
exports.listEntitlementsRequestToJSON = listEntitlementsRequestToJSON;
|
|
41
|
+
exports.staleFromJSON = staleFromJSON;
|
|
41
42
|
exports.listEntitlementsResponseFromJSON = listEntitlementsResponseFromJSON;
|
|
42
43
|
const z = __importStar(require("zod/v3"));
|
|
43
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -63,10 +64,19 @@ function listEntitlementsRequestToJSON(listEntitlementsRequest) {
|
|
|
63
64
|
/** @internal */
|
|
64
65
|
exports.ListEntitlementsObject$inboundSchema = z.nativeEnum(exports.ListEntitlementsObject);
|
|
65
66
|
/** @internal */
|
|
67
|
+
exports.Stale$inboundSchema = z
|
|
68
|
+
.object({
|
|
69
|
+
computedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
70
|
+
});
|
|
71
|
+
function staleFromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Stale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stale' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
66
75
|
exports.ListEntitlementsResponse$inboundSchema = z.object({
|
|
67
76
|
object: exports.ListEntitlementsObject$inboundSchema.default("list"),
|
|
68
77
|
data: z.array(models.EntitlementListItem$inboundSchema),
|
|
69
78
|
pagination: models.OffsetPagination$inboundSchema,
|
|
79
|
+
stale: z.lazy(() => exports.Stale$inboundSchema).optional(),
|
|
70
80
|
});
|
|
71
81
|
function listEntitlementsResponseFromJSON(jsonString) {
|
|
72
82
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListEntitlementsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntitlementsResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listentitlements.js","sourceRoot":"","sources":["../../../../src/models/operations/listentitlements.ts"],"names":[],"mappings":";AAAA;;GAE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|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
6
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
7
7
|
*/
|
|
8
8
|
export type OutstandingBlock = {
|
|
9
9
|
/**
|
|
@@ -22,6 +22,10 @@ export type OutstandingBlock = {
|
|
|
22
22
|
* The part with status `PAYMENT_FAILED`: collection has ended
|
|
23
23
|
*/
|
|
24
24
|
paymentFailed: AccountFigure;
|
|
25
|
+
/**
|
|
26
|
+
* The invoices of `awaitingPayment` past their due date: status `ISSUED`, no card retry scheduled, and a due date before the start of today, UTC. Today is the subscription's test clock when test clocks are enabled. A subset of `awaitingPayment` by count. A credit invoice is never overdue, so the amount can exceed `awaitingPayment.amount`.
|
|
27
|
+
*/
|
|
28
|
+
overdue: AccountFigure;
|
|
25
29
|
};
|
|
26
30
|
/** @internal */
|
|
27
31
|
export declare const OutstandingBlock$inboundSchema: z.ZodType<OutstandingBlock, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outstandingblock.d.ts","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"outstandingblock.d.ts","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -47,6 +47,7 @@ exports.OutstandingBlock$inboundSchema = z.object({
|
|
|
47
47
|
amount: z.string(),
|
|
48
48
|
awaitingPayment: accountfigure_js_1.AccountFigure$inboundSchema,
|
|
49
49
|
paymentFailed: accountfigure_js_1.AccountFigure$inboundSchema,
|
|
50
|
+
overdue: accountfigure_js_1.AccountFigure$inboundSchema,
|
|
50
51
|
});
|
|
51
52
|
function outstandingBlockFromJSON(jsonString) {
|
|
52
53
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutstandingBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBlock' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outstandingblock.js","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"outstandingblock.js","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,4DAQC;AArDD,0CAA4B;AAC5B,kDAA8C;AAE9C,yDAAgF;AA6BhF,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,8CAA2B;IAC5C,aAAa,EAAE,8CAA2B;IAC1C,OAAO,EAAE,8CAA2B;CACrC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Permission: {
|
|
7
|
+
readonly OrganizationRead: "organization:read";
|
|
8
|
+
readonly MembersRead: "members:read";
|
|
9
|
+
readonly ProfileRead: "profile:read";
|
|
10
|
+
readonly ApiKeysRead: "apiKeys:read";
|
|
11
|
+
readonly MerchantsRead: "merchants:read";
|
|
12
|
+
readonly ConsumersRead: "consumers:read";
|
|
13
|
+
readonly CustomersRead: "customers:read";
|
|
14
|
+
readonly PlansRead: "plans:read";
|
|
15
|
+
readonly PricesRead: "prices:read";
|
|
16
|
+
readonly ProductsRead: "products:read";
|
|
17
|
+
readonly FeaturesRead: "features:read";
|
|
18
|
+
readonly FeesRead: "fees:read";
|
|
19
|
+
readonly BillableMetricsRead: "billableMetrics:read";
|
|
20
|
+
readonly ItemsRead: "items:read";
|
|
21
|
+
readonly PricingUnitsRead: "pricingUnits:read";
|
|
22
|
+
readonly SubscriptionsRead: "subscriptions:read";
|
|
23
|
+
readonly SubscriptionAdjustmentsRead: "subscriptionAdjustments:read";
|
|
24
|
+
readonly DiscountsRead: "discounts:read";
|
|
25
|
+
readonly GrantsRead: "grants:read";
|
|
26
|
+
readonly EntitlementsRead: "entitlements:read";
|
|
27
|
+
readonly CreditPoolsRead: "creditPools:read";
|
|
28
|
+
readonly OrdersRead: "orders:read";
|
|
29
|
+
readonly BillingSchedulesRead: "billingSchedules:read";
|
|
30
|
+
readonly InvoicesRead: "invoices:read";
|
|
31
|
+
readonly PaymentsRead: "payments:read";
|
|
32
|
+
readonly PaymentSessionsRead: "paymentSessions:read";
|
|
33
|
+
readonly PortalSessionsRead: "portalSessions:read";
|
|
34
|
+
readonly PlatformUsersRead: "platformUsers:read";
|
|
35
|
+
readonly PlatformAdminRead: "platformAdmin:read";
|
|
36
|
+
readonly OrganizationCreationRead: "organizationCreation:read";
|
|
37
|
+
readonly ComplianceRead: "compliance:read";
|
|
38
|
+
readonly TaxSettingsRead: "taxSettings:read";
|
|
39
|
+
readonly CostsRead: "costs:read";
|
|
40
|
+
readonly PaymentAccountsRead: "paymentAccounts:read";
|
|
41
|
+
readonly PayoutsRead: "payouts:read";
|
|
42
|
+
readonly ExternalAccountsRead: "externalAccounts:read";
|
|
43
|
+
readonly ExternalReferencesRead: "externalReferences:read";
|
|
44
|
+
readonly MerchantIntegrationsRead: "merchantIntegrations:read";
|
|
45
|
+
readonly WebhooksRead: "webhooks:read";
|
|
46
|
+
readonly TestClocksRead: "testClocks:read";
|
|
47
|
+
readonly ApprovalsRead: "approvals:read";
|
|
48
|
+
readonly SourcesRead: "sources:read";
|
|
49
|
+
readonly RevenueRead: "revenue:read";
|
|
50
|
+
readonly OrganizationWrite: "organization:write";
|
|
51
|
+
readonly MembersWrite: "members:write";
|
|
52
|
+
readonly ProfileWrite: "profile:write";
|
|
53
|
+
readonly ApiKeysWrite: "apiKeys:write";
|
|
54
|
+
readonly MerchantsWrite: "merchants:write";
|
|
55
|
+
readonly ConsumersWrite: "consumers:write";
|
|
56
|
+
readonly CustomersWrite: "customers:write";
|
|
57
|
+
readonly PlansWrite: "plans:write";
|
|
58
|
+
readonly PricesWrite: "prices:write";
|
|
59
|
+
readonly ProductsWrite: "products:write";
|
|
60
|
+
readonly FeaturesWrite: "features:write";
|
|
61
|
+
readonly FeesWrite: "fees:write";
|
|
62
|
+
readonly BillableMetricsWrite: "billableMetrics:write";
|
|
63
|
+
readonly ItemsWrite: "items:write";
|
|
64
|
+
readonly PricingUnitsWrite: "pricingUnits:write";
|
|
65
|
+
readonly SubscriptionsWrite: "subscriptions:write";
|
|
66
|
+
readonly SubscriptionAdjustmentsWrite: "subscriptionAdjustments:write";
|
|
67
|
+
readonly DiscountsWrite: "discounts:write";
|
|
68
|
+
readonly GrantsWrite: "grants:write";
|
|
69
|
+
readonly EntitlementsWrite: "entitlements:write";
|
|
70
|
+
readonly CreditPoolsWrite: "creditPools:write";
|
|
71
|
+
readonly OrdersWrite: "orders:write";
|
|
72
|
+
readonly BillingSchedulesWrite: "billingSchedules:write";
|
|
73
|
+
readonly InvoicesWrite: "invoices:write";
|
|
74
|
+
readonly PaymentsWrite: "payments:write";
|
|
75
|
+
readonly PaymentSessionsWrite: "paymentSessions:write";
|
|
76
|
+
readonly PortalSessionsWrite: "portalSessions:write";
|
|
77
|
+
readonly PlatformUsersWrite: "platformUsers:write";
|
|
78
|
+
readonly PlatformAdminWrite: "platformAdmin:write";
|
|
79
|
+
readonly OrganizationCreationWrite: "organizationCreation:write";
|
|
80
|
+
readonly ComplianceWrite: "compliance:write";
|
|
81
|
+
readonly TaxSettingsWrite: "taxSettings:write";
|
|
82
|
+
readonly CostsWrite: "costs:write";
|
|
83
|
+
readonly PaymentAccountsWrite: "paymentAccounts:write";
|
|
84
|
+
readonly PayoutsWrite: "payouts:write";
|
|
85
|
+
readonly ExternalAccountsWrite: "externalAccounts:write";
|
|
86
|
+
readonly ExternalReferencesWrite: "externalReferences:write";
|
|
87
|
+
readonly MerchantIntegrationsWrite: "merchantIntegrations:write";
|
|
88
|
+
readonly WebhooksWrite: "webhooks:write";
|
|
89
|
+
readonly TestClocksWrite: "testClocks:write";
|
|
90
|
+
readonly ApprovalsWrite: "approvals:write";
|
|
91
|
+
readonly SourcesWrite: "sources:write";
|
|
92
|
+
readonly EventsWrite: "events:write";
|
|
93
|
+
readonly InvoicesIssue: "invoices:issue";
|
|
94
|
+
readonly InvoicesVoid: "invoices:void";
|
|
95
|
+
readonly PaymentsRefund: "payments:refund";
|
|
96
|
+
readonly OrganizationDelete: "organization:delete";
|
|
97
|
+
readonly OwnershipTransfer: "ownership:transfer";
|
|
98
|
+
readonly SubscriptionsTerminate: "subscriptions:terminate";
|
|
99
|
+
readonly SubscriptionsTerminateWithReason: "subscriptions:terminateWithReason";
|
|
100
|
+
readonly SubscriptionsReconcile: "subscriptions:reconcile";
|
|
101
|
+
readonly SubscriptionsUpdate: "subscriptions:update";
|
|
102
|
+
readonly SubscriptionsDelete: "subscriptions:delete";
|
|
103
|
+
readonly SubscriptionsTaxExempt: "subscriptions:taxExempt";
|
|
104
|
+
readonly SubscriptionsAutoApprove: "subscriptions:autoApprove";
|
|
105
|
+
readonly OrganizationResetData: "organization:resetData";
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
109
|
+
*/
|
|
110
|
+
export type Permission = ClosedEnum<typeof Permission>;
|
|
111
|
+
/** @internal */
|
|
112
|
+
export declare const Permission$inboundSchema: z.ZodNativeEnum<typeof Permission>;
|
|
113
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
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.Permission$inboundSchema = exports.Permission = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
/**
|
|
42
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
43
|
+
*/
|
|
44
|
+
exports.Permission = {
|
|
45
|
+
OrganizationRead: "organization:read",
|
|
46
|
+
MembersRead: "members:read",
|
|
47
|
+
ProfileRead: "profile:read",
|
|
48
|
+
ApiKeysRead: "apiKeys:read",
|
|
49
|
+
MerchantsRead: "merchants:read",
|
|
50
|
+
ConsumersRead: "consumers:read",
|
|
51
|
+
CustomersRead: "customers:read",
|
|
52
|
+
PlansRead: "plans:read",
|
|
53
|
+
PricesRead: "prices:read",
|
|
54
|
+
ProductsRead: "products:read",
|
|
55
|
+
FeaturesRead: "features:read",
|
|
56
|
+
FeesRead: "fees:read",
|
|
57
|
+
BillableMetricsRead: "billableMetrics:read",
|
|
58
|
+
ItemsRead: "items:read",
|
|
59
|
+
PricingUnitsRead: "pricingUnits:read",
|
|
60
|
+
SubscriptionsRead: "subscriptions:read",
|
|
61
|
+
SubscriptionAdjustmentsRead: "subscriptionAdjustments:read",
|
|
62
|
+
DiscountsRead: "discounts:read",
|
|
63
|
+
GrantsRead: "grants:read",
|
|
64
|
+
EntitlementsRead: "entitlements:read",
|
|
65
|
+
CreditPoolsRead: "creditPools:read",
|
|
66
|
+
OrdersRead: "orders:read",
|
|
67
|
+
BillingSchedulesRead: "billingSchedules:read",
|
|
68
|
+
InvoicesRead: "invoices:read",
|
|
69
|
+
PaymentsRead: "payments:read",
|
|
70
|
+
PaymentSessionsRead: "paymentSessions:read",
|
|
71
|
+
PortalSessionsRead: "portalSessions:read",
|
|
72
|
+
PlatformUsersRead: "platformUsers:read",
|
|
73
|
+
PlatformAdminRead: "platformAdmin:read",
|
|
74
|
+
OrganizationCreationRead: "organizationCreation:read",
|
|
75
|
+
ComplianceRead: "compliance:read",
|
|
76
|
+
TaxSettingsRead: "taxSettings:read",
|
|
77
|
+
CostsRead: "costs:read",
|
|
78
|
+
PaymentAccountsRead: "paymentAccounts:read",
|
|
79
|
+
PayoutsRead: "payouts:read",
|
|
80
|
+
ExternalAccountsRead: "externalAccounts:read",
|
|
81
|
+
ExternalReferencesRead: "externalReferences:read",
|
|
82
|
+
MerchantIntegrationsRead: "merchantIntegrations:read",
|
|
83
|
+
WebhooksRead: "webhooks:read",
|
|
84
|
+
TestClocksRead: "testClocks:read",
|
|
85
|
+
ApprovalsRead: "approvals:read",
|
|
86
|
+
SourcesRead: "sources:read",
|
|
87
|
+
RevenueRead: "revenue:read",
|
|
88
|
+
OrganizationWrite: "organization:write",
|
|
89
|
+
MembersWrite: "members:write",
|
|
90
|
+
ProfileWrite: "profile:write",
|
|
91
|
+
ApiKeysWrite: "apiKeys:write",
|
|
92
|
+
MerchantsWrite: "merchants:write",
|
|
93
|
+
ConsumersWrite: "consumers:write",
|
|
94
|
+
CustomersWrite: "customers:write",
|
|
95
|
+
PlansWrite: "plans:write",
|
|
96
|
+
PricesWrite: "prices:write",
|
|
97
|
+
ProductsWrite: "products:write",
|
|
98
|
+
FeaturesWrite: "features:write",
|
|
99
|
+
FeesWrite: "fees:write",
|
|
100
|
+
BillableMetricsWrite: "billableMetrics:write",
|
|
101
|
+
ItemsWrite: "items:write",
|
|
102
|
+
PricingUnitsWrite: "pricingUnits:write",
|
|
103
|
+
SubscriptionsWrite: "subscriptions:write",
|
|
104
|
+
SubscriptionAdjustmentsWrite: "subscriptionAdjustments:write",
|
|
105
|
+
DiscountsWrite: "discounts:write",
|
|
106
|
+
GrantsWrite: "grants:write",
|
|
107
|
+
EntitlementsWrite: "entitlements:write",
|
|
108
|
+
CreditPoolsWrite: "creditPools:write",
|
|
109
|
+
OrdersWrite: "orders:write",
|
|
110
|
+
BillingSchedulesWrite: "billingSchedules:write",
|
|
111
|
+
InvoicesWrite: "invoices:write",
|
|
112
|
+
PaymentsWrite: "payments:write",
|
|
113
|
+
PaymentSessionsWrite: "paymentSessions:write",
|
|
114
|
+
PortalSessionsWrite: "portalSessions:write",
|
|
115
|
+
PlatformUsersWrite: "platformUsers:write",
|
|
116
|
+
PlatformAdminWrite: "platformAdmin:write",
|
|
117
|
+
OrganizationCreationWrite: "organizationCreation:write",
|
|
118
|
+
ComplianceWrite: "compliance:write",
|
|
119
|
+
TaxSettingsWrite: "taxSettings:write",
|
|
120
|
+
CostsWrite: "costs:write",
|
|
121
|
+
PaymentAccountsWrite: "paymentAccounts:write",
|
|
122
|
+
PayoutsWrite: "payouts:write",
|
|
123
|
+
ExternalAccountsWrite: "externalAccounts:write",
|
|
124
|
+
ExternalReferencesWrite: "externalReferences:write",
|
|
125
|
+
MerchantIntegrationsWrite: "merchantIntegrations:write",
|
|
126
|
+
WebhooksWrite: "webhooks:write",
|
|
127
|
+
TestClocksWrite: "testClocks:write",
|
|
128
|
+
ApprovalsWrite: "approvals:write",
|
|
129
|
+
SourcesWrite: "sources:write",
|
|
130
|
+
EventsWrite: "events:write",
|
|
131
|
+
InvoicesIssue: "invoices:issue",
|
|
132
|
+
InvoicesVoid: "invoices:void",
|
|
133
|
+
PaymentsRefund: "payments:refund",
|
|
134
|
+
OrganizationDelete: "organization:delete",
|
|
135
|
+
OwnershipTransfer: "ownership:transfer",
|
|
136
|
+
SubscriptionsTerminate: "subscriptions:terminate",
|
|
137
|
+
SubscriptionsTerminateWithReason: "subscriptions:terminateWithReason",
|
|
138
|
+
SubscriptionsReconcile: "subscriptions:reconcile",
|
|
139
|
+
SubscriptionsUpdate: "subscriptions:update",
|
|
140
|
+
SubscriptionsDelete: "subscriptions:delete",
|
|
141
|
+
SubscriptionsTaxExempt: "subscriptions:taxExempt",
|
|
142
|
+
SubscriptionsAutoApprove: "subscriptions:autoApprove",
|
|
143
|
+
OrganizationResetData: "organization:resetData",
|
|
144
|
+
};
|
|
145
|
+
/** @internal */
|
|
146
|
+
exports.Permission$inboundSchema = z
|
|
147
|
+
.nativeEnum(exports.Permission);
|
|
148
|
+
//# sourceMappingURL=permission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,QAAQ,EAAE,WAAW;IACrB,mBAAmB,EAAE,sBAAsB;IAC3C,SAAS,EAA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+3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
4
|
import { ProfitabilityRow } from "./profitabilityrow.js";
|
|
5
5
|
/**
|
|
6
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
6
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
7
7
|
*/
|
|
8
8
|
export type ProfitabilitySummaryResponseRevenueRange = {
|
|
9
9
|
/**
|
|
@@ -16,7 +16,7 @@ export type ProfitabilitySummaryResponseRevenueRange = {
|
|
|
16
16
|
to: Date;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
|
|
19
|
+
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it.
|
|
20
20
|
*/
|
|
21
21
|
export type ProfitabilitySummaryResponseCostRange = {
|
|
22
22
|
/**
|
|
@@ -62,11 +62,11 @@ export type ProfitabilitySummaryResponse = {
|
|
|
62
62
|
*/
|
|
63
63
|
warnings?: Array<string> | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
65
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
66
66
|
*/
|
|
67
67
|
revenueRange?: ProfitabilitySummaryResponseRevenueRange | null | undefined;
|
|
68
68
|
/**
|
|
69
|
-
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
|
|
69
|
+
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it.
|
|
70
70
|
*/
|
|
71
71
|
costRange?: ProfitabilitySummaryResponseCostRange | null | undefined;
|
|
72
72
|
};
|
|
@@ -16,7 +16,7 @@ export type RevenueAccountRow = {
|
|
|
16
16
|
*/
|
|
17
17
|
currency: string;
|
|
18
18
|
/**
|
|
19
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
19
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
20
20
|
*/
|
|
21
21
|
outstanding: OutstandingBlock;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export type RevenueAccountTotal = {
|
|
|
8
8
|
*/
|
|
9
9
|
currency: string;
|
|
10
10
|
/**
|
|
11
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
11
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
12
12
|
*/
|
|
13
13
|
outstanding: OutstandingBlock;
|
|
14
14
|
};
|