@opusdns/api 1.138.0 → 1.139.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.5.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.138.0",
6
+ "version": "1.139.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -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",
@@ -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
@@ -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;
@@ -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-26-165903
15783
+ version: 2026-08-27-083857
15769
15784
  x-logo:
15770
15785
  altText: OpusDNS API Reference
15771
15786
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -30475,6 +30490,61 @@ paths:
30475
30490
  - organization
30476
30491
  x-required-permissions:
30477
30492
  - billing:manage
30493
+ /v1/organizations/{organization_id}/billing/receipts:
30494
+ get:
30495
+ description: Retrieves a paginated list of all payment receipts for the organization
30496
+ operationId: list_receipts_v1_organizations__organization_id__billing_receipts_get
30497
+ parameters:
30498
+ - in: path
30499
+ name: organization_id
30500
+ required: true
30501
+ schema:
30502
+ examples:
30503
+ - organization_01h45ytscbebyvny4gc8cr8ma2
30504
+ format: typeid
30505
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
30506
+ title: Organization Id
30507
+ type: string
30508
+ x-typeid-prefix: organization
30509
+ - in: query
30510
+ name: page
30511
+ required: false
30512
+ schema:
30513
+ default: 1
30514
+ minimum: 1
30515
+ title: Page
30516
+ type: integer
30517
+ - in: query
30518
+ name: page_size
30519
+ required: false
30520
+ schema:
30521
+ default: 10
30522
+ maximum: 1000
30523
+ minimum: 1
30524
+ title: Page Size
30525
+ type: integer
30526
+ - $ref: '#/components/parameters/DatetimeFormatHeader'
30527
+ responses:
30528
+ '200':
30529
+ content:
30530
+ application/json:
30531
+ schema:
30532
+ $ref: '#/components/schemas/Pagination_InvoiceResponse_'
30533
+ description: Successful Response
30534
+ '422':
30535
+ content:
30536
+ application/problem+json:
30537
+ schema:
30538
+ $ref: '#/components/schemas/HTTPValidationError'
30539
+ description: Validation Error
30540
+ security:
30541
+ - OAuth2PasswordBearer: []
30542
+ - APIKeyHeader: []
30543
+ summary: List all payment receipts for the organization
30544
+ tags:
30545
+ - organization
30546
+ x-required-permissions:
30547
+ - billing:manage
30478
30548
  /v1/organizations/{organization_id}/pricing/product-type/{product_type}:
30479
30549
  get:
30480
30550
  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
@@ -25192,6 +25221,46 @@ export interface operations {
25192
25221
  };
25193
25222
  };
25194
25223
  };
25224
+ list_receipts_v1_organizations__organization_id__billing_receipts_get: {
25225
+ parameters: {
25226
+ query?: {
25227
+ page?: number;
25228
+ page_size?: number;
25229
+ };
25230
+ header?: {
25231
+ /**
25232
+ * @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.
25233
+ * @example rfc3339
25234
+ */
25235
+ "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
25236
+ };
25237
+ path: {
25238
+ organization_id: TypeId<"organization">;
25239
+ };
25240
+ cookie?: never;
25241
+ };
25242
+ requestBody?: never;
25243
+ responses: {
25244
+ /** @description Successful Response */
25245
+ 200: {
25246
+ headers: {
25247
+ [name: string]: unknown;
25248
+ };
25249
+ content: {
25250
+ "application/json": components["schemas"]["Pagination_InvoiceResponse_"];
25251
+ };
25252
+ };
25253
+ /** @description Validation Error */
25254
+ 422: {
25255
+ headers: {
25256
+ [name: string]: unknown;
25257
+ };
25258
+ content: {
25259
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
25260
+ };
25261
+ };
25262
+ };
25263
+ };
25195
25264
  get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get: {
25196
25265
  parameters: {
25197
25266
  query?: {