@opusdns/api 1.138.0 → 1.140.0
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/package.json +1 -1
- package/src/helpers/constants.ts +11 -0
- package/src/helpers/endpoints.ts +2 -0
- package/src/helpers/keys.ts +2 -0
- package/src/helpers/permissions.ts +8 -0
- package/src/helpers/requests.d.ts +6 -0
- package/src/helpers/responses.d.ts +5 -0
- package/src/helpers/schemas.d.ts +1 -0
- package/src/openapi.yaml +79 -1
- package/src/schema.d.ts +70 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -56,6 +56,7 @@ import type {
|
|
|
56
56
|
HostStatus,
|
|
57
57
|
HttpProtocol,
|
|
58
58
|
IPAddressType,
|
|
59
|
+
InvoiceDocumentType,
|
|
59
60
|
InvoiceResponsePaymentStatus,
|
|
60
61
|
InvoiceResponseStatus,
|
|
61
62
|
InvoiceResponseType,
|
|
@@ -1095,6 +1096,16 @@ export const IP_ADDRESS_TYPE_VALUES = [
|
|
|
1095
1096
|
'v6',
|
|
1096
1097
|
] as const satisfies ReadonlyArray<IPAddressType>;
|
|
1097
1098
|
|
|
1099
|
+
export const INVOICE_DOCUMENT_TYPE = {
|
|
1100
|
+
INVOICE: "invoice",
|
|
1101
|
+
RECEIPT: "receipt",
|
|
1102
|
+
} as const satisfies Record<string, InvoiceDocumentType>;
|
|
1103
|
+
|
|
1104
|
+
export const INVOICE_DOCUMENT_TYPE_VALUES = [
|
|
1105
|
+
'invoice',
|
|
1106
|
+
'receipt',
|
|
1107
|
+
] as const satisfies ReadonlyArray<InvoiceDocumentType>;
|
|
1108
|
+
|
|
1098
1109
|
export const INVOICE_RESPONSE_PAYMENT_STATUS = {
|
|
1099
1110
|
PENDING: "pending",
|
|
1100
1111
|
FAILED: "failed",
|
package/src/helpers/endpoints.ts
CHANGED
|
@@ -110,6 +110,7 @@ export const ORGANIZATIONS_USERS_ENDPOINT = '/v1/organizations/users';
|
|
|
110
110
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_ENDPOINT = '/v1/organizations/{organization_id}';
|
|
111
111
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_ATTRIBUTES_ENDPOINT = '/v1/organizations/{organization_id}/attributes';
|
|
112
112
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_INVOICES_ENDPOINT = '/v1/organizations/{organization_id}/billing/invoices';
|
|
113
|
+
export const ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_RECEIPTS_ENDPOINT = '/v1/organizations/{organization_id}/billing/receipts';
|
|
113
114
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_PRICING_PRODUCT_TYPE_BY_PRODUCT_TYPE_ENDPOINT = '/v1/organizations/{organization_id}/pricing/product-type/{product_type}';
|
|
114
115
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_TRANSACTIONS_ENDPOINT = '/v1/organizations/{organization_id}/transactions';
|
|
115
116
|
export const ORGANIZATIONS_BY_ORGANIZATION_ID_TRANSACTIONS_BY_TRANSACTION_ID_ENDPOINT = '/v1/organizations/{organization_id}/transactions/{transaction_id}';
|
|
@@ -263,6 +264,7 @@ export type Endpoint =
|
|
|
263
264
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_ENDPOINT
|
|
264
265
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_ATTRIBUTES_ENDPOINT
|
|
265
266
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_INVOICES_ENDPOINT
|
|
267
|
+
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_RECEIPTS_ENDPOINT
|
|
266
268
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_PRICING_PRODUCT_TYPE_BY_PRODUCT_TYPE_ENDPOINT
|
|
267
269
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_TRANSACTIONS_ENDPOINT
|
|
268
270
|
| typeof ORGANIZATIONS_BY_ORGANIZATION_ID_TRANSACTIONS_BY_TRANSACTION_ID_ENDPOINT
|
package/src/helpers/keys.ts
CHANGED
|
@@ -3651,6 +3651,7 @@ export const KEYS_IDN_BASE = [
|
|
|
3651
3651
|
|
|
3652
3652
|
export const KEY_INVOICE_AMOUNT = 'amount' satisfies keyof Invoice;
|
|
3653
3653
|
export const KEY_INVOICE_CURRENCY = 'currency' satisfies keyof Invoice;
|
|
3654
|
+
export const KEY_INVOICE_DOCUMENT_TYPE = 'document_type' satisfies keyof Invoice;
|
|
3654
3655
|
export const KEY_INVOICE_EXTERNAL_ID = 'external_id' satisfies keyof Invoice;
|
|
3655
3656
|
export const KEY_INVOICE_FEES_AMOUNT = 'fees_amount' satisfies keyof Invoice;
|
|
3656
3657
|
export const KEY_INVOICE_FILE_URL = 'file_url' satisfies keyof Invoice;
|
|
@@ -3666,6 +3667,7 @@ export const KEY_INVOICE_TAXES_AMOUNT = 'taxes_amount' satisfies keyof Invoice;
|
|
|
3666
3667
|
export const KEYS_INVOICE = [
|
|
3667
3668
|
KEY_INVOICE_AMOUNT,
|
|
3668
3669
|
KEY_INVOICE_CURRENCY,
|
|
3670
|
+
KEY_INVOICE_DOCUMENT_TYPE,
|
|
3669
3671
|
KEY_INVOICE_EXTERNAL_ID,
|
|
3670
3672
|
KEY_INVOICE_FEES_AMOUNT,
|
|
3671
3673
|
KEY_INVOICE_FILE_URL,
|
|
@@ -106,6 +106,7 @@ import {
|
|
|
106
106
|
ORGANIZATIONS_ATTRIBUTES_ENDPOINT,
|
|
107
107
|
ORGANIZATIONS_BY_ORGANIZATION_ID_ATTRIBUTES_ENDPOINT,
|
|
108
108
|
ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_INVOICES_ENDPOINT,
|
|
109
|
+
ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_RECEIPTS_ENDPOINT,
|
|
109
110
|
ORGANIZATIONS_BY_ORGANIZATION_ID_ENDPOINT,
|
|
110
111
|
ORGANIZATIONS_BY_ORGANIZATION_ID_PRICING_PRODUCT_TYPE_BY_PRODUCT_TYPE_ENDPOINT,
|
|
111
112
|
ORGANIZATIONS_BY_ORGANIZATION_ID_TRANSACTIONS_BY_TRANSACTION_ID_ENDPOINT,
|
|
@@ -949,6 +950,13 @@ export const REQUIRED_PERMISSIONS = {
|
|
|
949
950
|
patch: [],
|
|
950
951
|
delete: [],
|
|
951
952
|
},
|
|
953
|
+
[ORGANIZATIONS_BY_ORGANIZATION_ID_BILLING_RECEIPTS_ENDPOINT]: {
|
|
954
|
+
get: [PUBLIC_PERMISSION.BILLING_MANAGE],
|
|
955
|
+
post: [],
|
|
956
|
+
put: [],
|
|
957
|
+
patch: [],
|
|
958
|
+
delete: [],
|
|
959
|
+
},
|
|
952
960
|
[ORGANIZATIONS_BY_ORGANIZATION_ID_ENDPOINT]: {
|
|
953
961
|
get: [PUBLIC_PERMISSION.ORGANIZATION_READ],
|
|
954
962
|
post: [],
|
|
@@ -880,6 +880,12 @@ export type GET_OrganizationsByOrganizationIdBillingInvoices_Request = {
|
|
|
880
880
|
export type GET_OrganizationsByOrganizationIdBillingInvoices_Request_Query = GET_OrganizationsByOrganizationIdBillingInvoices_Request['parameters']['query'];
|
|
881
881
|
export type GET_OrganizationsByOrganizationIdBillingInvoices_Request_Path = GET_OrganizationsByOrganizationIdBillingInvoices_Request['parameters']['path'];
|
|
882
882
|
|
|
883
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Request = {
|
|
884
|
+
parameters: operations['list_receipts_v1_organizations__organization_id__billing_receipts_get']['parameters'];
|
|
885
|
+
};
|
|
886
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Request_Query = GET_OrganizationsByOrganizationIdBillingReceipts_Request['parameters']['query'];
|
|
887
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Request_Path = GET_OrganizationsByOrganizationIdBillingReceipts_Request['parameters']['path'];
|
|
888
|
+
|
|
883
889
|
export type GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Request = {
|
|
884
890
|
parameters: operations['get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get']['parameters'];
|
|
885
891
|
};
|
|
@@ -679,6 +679,11 @@ export type GET_OrganizationsByOrganizationIdBillingInvoices_Response = GET_Orga
|
|
|
679
679
|
export type GET_OrganizationsByOrganizationIdBillingInvoices_Response_200 = Pagination_Invoice;
|
|
680
680
|
export type GET_OrganizationsByOrganizationIdBillingInvoices_Response_422 = HTTPValidationError;
|
|
681
681
|
|
|
682
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Response = GET_OrganizationsByOrganizationIdBillingReceipts_Response_200 | GET_OrganizationsByOrganizationIdBillingReceipts_Response_422;
|
|
683
|
+
|
|
684
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Response_200 = Pagination_Invoice;
|
|
685
|
+
export type GET_OrganizationsByOrganizationIdBillingReceipts_Response_422 = HTTPValidationError;
|
|
686
|
+
|
|
682
687
|
export type GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response = GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_200 | GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_401 | GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_403 | GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_422;
|
|
683
688
|
|
|
684
689
|
export type GET_OrganizationsByOrganizationIdPricingProductTypeByProductType_Response_200 = GetPrices;
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -327,6 +327,7 @@ export type HttpRedirectRequest = components['schemas']['HttpRedirectRequest'];
|
|
|
327
327
|
export type HttpRedirectUpsert = components['schemas']['HttpRedirectUpsert'];
|
|
328
328
|
export type IPAddressType = components['schemas']['IPAddressType'];
|
|
329
329
|
export type IdnBase = components['schemas']['IdnBase'];
|
|
330
|
+
export type InvoiceDocumentType = components['schemas']['InvoiceDocumentType'];
|
|
330
331
|
export type Invoice = components['schemas']['InvoiceResponse'];
|
|
331
332
|
export type InvoiceResponsePaymentStatus = components['schemas']['InvoiceResponsePaymentStatus'];
|
|
332
333
|
export type InvoiceResponseStatus = components['schemas']['InvoiceResponseStatus'];
|
package/src/openapi.yaml
CHANGED
|
@@ -8302,6 +8302,17 @@ components:
|
|
|
8302
8302
|
- idn_capable
|
|
8303
8303
|
title: IdnBase
|
|
8304
8304
|
type: object
|
|
8305
|
+
InvoiceDocumentType:
|
|
8306
|
+
description: 'Customer-facing document class. Orthogonal to `InvoiceResponseType`:
|
|
8307
|
+
prepaid-credit invoices are receipts,
|
|
8308
|
+
|
|
8309
|
+
everything else billable is an invoice. Documents billing classifies as neither
|
|
8310
|
+
are never returned.'
|
|
8311
|
+
enum:
|
|
8312
|
+
- invoice
|
|
8313
|
+
- receipt
|
|
8314
|
+
title: InvoiceDocumentType
|
|
8315
|
+
type: string
|
|
8305
8316
|
InvoiceResponse:
|
|
8306
8317
|
properties:
|
|
8307
8318
|
amount:
|
|
@@ -8312,6 +8323,9 @@ components:
|
|
|
8312
8323
|
currency:
|
|
8313
8324
|
$ref: '#/components/schemas/Currency'
|
|
8314
8325
|
description: Invoice currency
|
|
8326
|
+
document_type:
|
|
8327
|
+
$ref: '#/components/schemas/InvoiceDocumentType'
|
|
8328
|
+
description: Customer-facing document class
|
|
8315
8329
|
external_id:
|
|
8316
8330
|
description: Lago ID (external) for this invoice
|
|
8317
8331
|
title: External Id
|
|
@@ -8365,6 +8379,7 @@ components:
|
|
|
8365
8379
|
- issuing_date
|
|
8366
8380
|
- payment_due_date
|
|
8367
8381
|
- invoice_type
|
|
8382
|
+
- document_type
|
|
8368
8383
|
- status
|
|
8369
8384
|
- payment_status
|
|
8370
8385
|
- payment_overdue
|
|
@@ -15765,7 +15780,7 @@ info:
|
|
|
15765
15780
|
\n\n"
|
|
15766
15781
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
15767
15782
|
title: OpusDNS API
|
|
15768
|
-
version: 2026-08-
|
|
15783
|
+
version: 2026-08-27-143617
|
|
15769
15784
|
x-logo:
|
|
15770
15785
|
altText: OpusDNS API Reference
|
|
15771
15786
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -18051,6 +18066,14 @@ paths:
|
|
|
18051
18066
|
- type: string
|
|
18052
18067
|
- type: 'null'
|
|
18053
18068
|
title: Country
|
|
18069
|
+
- in: query
|
|
18070
|
+
name: in_use
|
|
18071
|
+
required: false
|
|
18072
|
+
schema:
|
|
18073
|
+
anyOf:
|
|
18074
|
+
- type: boolean
|
|
18075
|
+
- type: 'null'
|
|
18076
|
+
title: In Use
|
|
18054
18077
|
- in: query
|
|
18055
18078
|
name: created_after
|
|
18056
18079
|
required: false
|
|
@@ -30475,6 +30498,61 @@ paths:
|
|
|
30475
30498
|
- organization
|
|
30476
30499
|
x-required-permissions:
|
|
30477
30500
|
- billing:manage
|
|
30501
|
+
/v1/organizations/{organization_id}/billing/receipts:
|
|
30502
|
+
get:
|
|
30503
|
+
description: Retrieves a paginated list of all payment receipts for the organization
|
|
30504
|
+
operationId: list_receipts_v1_organizations__organization_id__billing_receipts_get
|
|
30505
|
+
parameters:
|
|
30506
|
+
- in: path
|
|
30507
|
+
name: organization_id
|
|
30508
|
+
required: true
|
|
30509
|
+
schema:
|
|
30510
|
+
examples:
|
|
30511
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
30512
|
+
format: typeid
|
|
30513
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
30514
|
+
title: Organization Id
|
|
30515
|
+
type: string
|
|
30516
|
+
x-typeid-prefix: organization
|
|
30517
|
+
- in: query
|
|
30518
|
+
name: page
|
|
30519
|
+
required: false
|
|
30520
|
+
schema:
|
|
30521
|
+
default: 1
|
|
30522
|
+
minimum: 1
|
|
30523
|
+
title: Page
|
|
30524
|
+
type: integer
|
|
30525
|
+
- in: query
|
|
30526
|
+
name: page_size
|
|
30527
|
+
required: false
|
|
30528
|
+
schema:
|
|
30529
|
+
default: 10
|
|
30530
|
+
maximum: 1000
|
|
30531
|
+
minimum: 1
|
|
30532
|
+
title: Page Size
|
|
30533
|
+
type: integer
|
|
30534
|
+
- $ref: '#/components/parameters/DatetimeFormatHeader'
|
|
30535
|
+
responses:
|
|
30536
|
+
'200':
|
|
30537
|
+
content:
|
|
30538
|
+
application/json:
|
|
30539
|
+
schema:
|
|
30540
|
+
$ref: '#/components/schemas/Pagination_InvoiceResponse_'
|
|
30541
|
+
description: Successful Response
|
|
30542
|
+
'422':
|
|
30543
|
+
content:
|
|
30544
|
+
application/problem+json:
|
|
30545
|
+
schema:
|
|
30546
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
30547
|
+
description: Validation Error
|
|
30548
|
+
security:
|
|
30549
|
+
- OAuth2PasswordBearer: []
|
|
30550
|
+
- APIKeyHeader: []
|
|
30551
|
+
summary: List all payment receipts for the organization
|
|
30552
|
+
tags:
|
|
30553
|
+
- organization
|
|
30554
|
+
x-required-permissions:
|
|
30555
|
+
- billing:manage
|
|
30478
30556
|
/v1/organizations/{organization_id}/pricing/product-type/{product_type}:
|
|
30479
30557
|
get:
|
|
30480
30558
|
description: Retrieves pricing data for a specific product type. If a product
|
package/src/schema.d.ts
CHANGED
|
@@ -2304,6 +2304,26 @@ export interface paths {
|
|
|
2304
2304
|
patch?: never;
|
|
2305
2305
|
trace?: never;
|
|
2306
2306
|
};
|
|
2307
|
+
"/v1/organizations/{organization_id}/billing/receipts": {
|
|
2308
|
+
parameters: {
|
|
2309
|
+
query?: never;
|
|
2310
|
+
header?: never;
|
|
2311
|
+
path?: never;
|
|
2312
|
+
cookie?: never;
|
|
2313
|
+
};
|
|
2314
|
+
/**
|
|
2315
|
+
* List all payment receipts for the organization
|
|
2316
|
+
* @description Retrieves a paginated list of all payment receipts for the organization
|
|
2317
|
+
*/
|
|
2318
|
+
get: operations["list_receipts_v1_organizations__organization_id__billing_receipts_get"];
|
|
2319
|
+
put?: never;
|
|
2320
|
+
post?: never;
|
|
2321
|
+
delete?: never;
|
|
2322
|
+
options?: never;
|
|
2323
|
+
head?: never;
|
|
2324
|
+
patch?: never;
|
|
2325
|
+
trace?: never;
|
|
2326
|
+
};
|
|
2307
2327
|
"/v1/organizations/{organization_id}/pricing/product-type/{product_type}": {
|
|
2308
2328
|
parameters: {
|
|
2309
2329
|
query?: never;
|
|
@@ -8471,6 +8491,13 @@ export interface components {
|
|
|
8471
8491
|
*/
|
|
8472
8492
|
idn_tables?: string[] | null;
|
|
8473
8493
|
};
|
|
8494
|
+
/**
|
|
8495
|
+
* InvoiceDocumentType
|
|
8496
|
+
* @description Customer-facing document class. Orthogonal to `InvoiceResponseType`: prepaid-credit invoices are receipts,
|
|
8497
|
+
* everything else billable is an invoice. Documents billing classifies as neither are never returned.
|
|
8498
|
+
* @enum {string}
|
|
8499
|
+
*/
|
|
8500
|
+
InvoiceDocumentType: "invoice" | "receipt";
|
|
8474
8501
|
/** InvoiceResponse */
|
|
8475
8502
|
InvoiceResponse: {
|
|
8476
8503
|
/**
|
|
@@ -8480,6 +8507,8 @@ export interface components {
|
|
|
8480
8507
|
amount: string;
|
|
8481
8508
|
/** @description Invoice currency */
|
|
8482
8509
|
currency: components["schemas"]["Currency"];
|
|
8510
|
+
/** @description Customer-facing document class */
|
|
8511
|
+
document_type: components["schemas"]["InvoiceDocumentType"];
|
|
8483
8512
|
/**
|
|
8484
8513
|
* External Id
|
|
8485
8514
|
* @description Lago ID (external) for this invoice
|
|
@@ -15202,6 +15231,7 @@ export interface operations {
|
|
|
15202
15231
|
email?: string | null;
|
|
15203
15232
|
search?: string | null;
|
|
15204
15233
|
country?: string | null;
|
|
15234
|
+
in_use?: boolean | null;
|
|
15205
15235
|
created_after?: Date | null;
|
|
15206
15236
|
created_before?: Date | null;
|
|
15207
15237
|
/** @description Include additional data in the response. Can be specified multiple times. */
|
|
@@ -25192,6 +25222,46 @@ export interface operations {
|
|
|
25192
25222
|
};
|
|
25193
25223
|
};
|
|
25194
25224
|
};
|
|
25225
|
+
list_receipts_v1_organizations__organization_id__billing_receipts_get: {
|
|
25226
|
+
parameters: {
|
|
25227
|
+
query?: {
|
|
25228
|
+
page?: number;
|
|
25229
|
+
page_size?: number;
|
|
25230
|
+
};
|
|
25231
|
+
header?: {
|
|
25232
|
+
/**
|
|
25233
|
+
* @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
|
|
25234
|
+
* @example rfc3339
|
|
25235
|
+
*/
|
|
25236
|
+
"X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
|
|
25237
|
+
};
|
|
25238
|
+
path: {
|
|
25239
|
+
organization_id: TypeId<"organization">;
|
|
25240
|
+
};
|
|
25241
|
+
cookie?: never;
|
|
25242
|
+
};
|
|
25243
|
+
requestBody?: never;
|
|
25244
|
+
responses: {
|
|
25245
|
+
/** @description Successful Response */
|
|
25246
|
+
200: {
|
|
25247
|
+
headers: {
|
|
25248
|
+
[name: string]: unknown;
|
|
25249
|
+
};
|
|
25250
|
+
content: {
|
|
25251
|
+
"application/json": components["schemas"]["Pagination_InvoiceResponse_"];
|
|
25252
|
+
};
|
|
25253
|
+
};
|
|
25254
|
+
/** @description Validation Error */
|
|
25255
|
+
422: {
|
|
25256
|
+
headers: {
|
|
25257
|
+
[name: string]: unknown;
|
|
25258
|
+
};
|
|
25259
|
+
content: {
|
|
25260
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
25261
|
+
};
|
|
25262
|
+
};
|
|
25263
|
+
};
|
|
25264
|
+
};
|
|
25195
25265
|
get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get: {
|
|
25196
25266
|
parameters: {
|
|
25197
25267
|
query?: {
|