@opusdns/api 0.199.0 → 0.201.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/src/schema.d.ts CHANGED
@@ -181,6 +181,43 @@ export interface paths {
181
181
  patch?: never;
182
182
  trace?: never;
183
183
  };
184
+ "/v1/contacts/attribute-sets": {
185
+ parameters: {
186
+ query?: never;
187
+ header?: never;
188
+ path?: never;
189
+ cookie?: never;
190
+ };
191
+ /** List contact attribute sets */
192
+ get: operations["list_attribute_sets_v1_contacts_attribute_sets_get"];
193
+ put?: never;
194
+ /** Create a contact attribute set */
195
+ post: operations["create_attribute_set_v1_contacts_attribute_sets_post"];
196
+ delete?: never;
197
+ options?: never;
198
+ head?: never;
199
+ patch?: never;
200
+ trace?: never;
201
+ };
202
+ "/v1/contacts/attribute-sets/{contact_attribute_set_id}": {
203
+ parameters: {
204
+ query?: never;
205
+ header?: never;
206
+ path?: never;
207
+ cookie?: never;
208
+ };
209
+ /** Retrieve a contact attribute set */
210
+ get: operations["get_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__get"];
211
+ put?: never;
212
+ post?: never;
213
+ /** Delete a contact attribute set */
214
+ delete: operations["delete_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__delete"];
215
+ options?: never;
216
+ head?: never;
217
+ /** Update a contact attribute set */
218
+ patch: operations["update_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__patch"];
219
+ trace?: never;
220
+ };
184
221
  "/v1/contacts/verification": {
185
222
  parameters: {
186
223
  query?: never;
@@ -223,10 +260,7 @@ export interface paths {
223
260
  path?: never;
224
261
  cookie?: never;
225
262
  };
226
- /**
227
- * Retrieve a contact
228
- * @description Retrieves a contact object
229
- */
263
+ /** Retrieve a contact */
230
264
  get: operations["get_contact_v1_contacts__contact_id__get"];
231
265
  put?: never;
232
266
  post?: never;
@@ -240,6 +274,23 @@ export interface paths {
240
274
  patch?: never;
241
275
  trace?: never;
242
276
  };
277
+ "/v1/contacts/{contact_id}/link/{contact_attribute_set_id}": {
278
+ parameters: {
279
+ query?: never;
280
+ header?: never;
281
+ path?: never;
282
+ cookie?: never;
283
+ };
284
+ get?: never;
285
+ put?: never;
286
+ post?: never;
287
+ delete?: never;
288
+ options?: never;
289
+ head?: never;
290
+ /** Link a contact to a contact attribute set */
291
+ patch: operations["create_attribute_link_v1_contacts__contact_id__link__contact_attribute_set_id__patch"];
292
+ trace?: never;
293
+ };
243
294
  "/v1/contacts/{contact_id}/verification": {
244
295
  parameters: {
245
296
  query?: never;
@@ -2056,6 +2107,142 @@ export interface components {
2056
2107
  */
2057
2108
  values?: string[] | null;
2058
2109
  };
2110
+ /** ContactAttributeLinkDetail */
2111
+ ContactAttributeLinkDetail: {
2112
+ /**
2113
+ * Attributes
2114
+ * @description The attributes from the linked set
2115
+ */
2116
+ attributes: {
2117
+ [key: string]: string;
2118
+ };
2119
+ /**
2120
+ * Contact Attribute Set Id
2121
+ * Format: typeid
2122
+ * @description The attribute set linked to the contact
2123
+ * @example contact_attribute_set_01h45ytscbebyvny4gc8cr8ma2
2124
+ */
2125
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
2126
+ /**
2127
+ * Label
2128
+ * @description The label of the linked attribute set
2129
+ */
2130
+ label: string;
2131
+ /**
2132
+ * Tld
2133
+ * @description The TLD this link applies to
2134
+ */
2135
+ tld: string;
2136
+ };
2137
+ /** ContactAttributeLinkResponse */
2138
+ ContactAttributeLinkResponse: {
2139
+ /**
2140
+ * Contact Attribute Link Id
2141
+ * Format: typeid
2142
+ * @description The unique identifier of the link
2143
+ * @example contact_attribute_link_01h45ytscbebyvny4gc8cr8ma2
2144
+ */
2145
+ contact_attribute_link_id: TypeId<"contact_attribute_link">;
2146
+ /**
2147
+ * Contact Attribute Set Id
2148
+ * Format: typeid
2149
+ * @description The attribute set linked to the contact
2150
+ * @example contact_attribute_set_01h45ytscbebyvny4gc8cr8ma2
2151
+ */
2152
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
2153
+ /**
2154
+ * Contact Id
2155
+ * Format: typeid
2156
+ * @description The contact this link belongs to
2157
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
2158
+ */
2159
+ contact_id: TypeId<"contact">;
2160
+ /**
2161
+ * Created On
2162
+ * Format: date-time
2163
+ * @description The date/time the entry was created on
2164
+ */
2165
+ created_on: Date;
2166
+ /**
2167
+ * Tld
2168
+ * @description The TLD this link applies to
2169
+ */
2170
+ tld: string;
2171
+ };
2172
+ /** ContactAttributeSetCreate */
2173
+ ContactAttributeSetCreate: {
2174
+ /**
2175
+ * Attributes
2176
+ * @description Key-value map of contact attributes for this set
2177
+ */
2178
+ attributes: {
2179
+ [key: string]: string;
2180
+ };
2181
+ /**
2182
+ * Label
2183
+ * @description A human-readable label explaining the purpose of this attribute set
2184
+ */
2185
+ label: string;
2186
+ /**
2187
+ * Tld
2188
+ * @description The TLD this attribute set applies to (e.g. 'de', '.de', 'DE')
2189
+ */
2190
+ tld: string;
2191
+ };
2192
+ /** ContactAttributeSetResponse */
2193
+ ContactAttributeSetResponse: {
2194
+ /**
2195
+ * Attributes
2196
+ * @description Key-value map of contact attributes for this set
2197
+ */
2198
+ attributes: {
2199
+ [key: string]: string;
2200
+ };
2201
+ /**
2202
+ * Contact Attribute Set Id
2203
+ * Format: typeid
2204
+ * @description The unique identifier of the attribute set
2205
+ * @example contact_attribute_set_01h45ytscbebyvny4gc8cr8ma2
2206
+ */
2207
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
2208
+ /**
2209
+ * Created On
2210
+ * Format: date-time
2211
+ * @description The date/time the entry was created on
2212
+ */
2213
+ created_on: Date;
2214
+ /**
2215
+ * Label
2216
+ * @description A human-readable label explaining the purpose of this attribute set
2217
+ */
2218
+ label: string;
2219
+ /**
2220
+ * Organization Id
2221
+ * Format: typeid
2222
+ * @description The organization that owns this attribute set
2223
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2224
+ */
2225
+ organization_id: TypeId<"organization">;
2226
+ /**
2227
+ * Tld
2228
+ * @description The TLD this attribute set applies to
2229
+ */
2230
+ tld: string;
2231
+ /**
2232
+ * Updated On
2233
+ * Format: date-time
2234
+ * @description The date/time the entry was last updated on
2235
+ */
2236
+ updated_on: Date;
2237
+ };
2238
+ /** ContactAttributeSetUpdate */
2239
+ ContactAttributeSetUpdate: {
2240
+ /**
2241
+ * Label
2242
+ * @description A human-readable label explaining the purpose of this attribute set
2243
+ */
2244
+ label?: string | null;
2245
+ };
2059
2246
  /** ContactConfigBase */
2060
2247
  ContactConfigBase: {
2061
2248
  /**
@@ -2142,6 +2329,107 @@ export interface components {
2142
2329
  */
2143
2330
  title?: string | null;
2144
2331
  };
2332
+ /** ContactDetailResponse */
2333
+ ContactDetailResponse: {
2334
+ /**
2335
+ * Attribute Sets
2336
+ * @description Linked attribute sets for this contact
2337
+ */
2338
+ attribute_sets?: components["schemas"]["ContactAttributeLinkDetail"][];
2339
+ /**
2340
+ * City
2341
+ * @description The city of the contact
2342
+ */
2343
+ city: string;
2344
+ /**
2345
+ * Contact Id
2346
+ * Format: typeid
2347
+ * @example contact_01h45ytscbebyvny4gc8cr8ma2
2348
+ */
2349
+ contact_id?: TypeId<"contact">;
2350
+ /**
2351
+ * Country
2352
+ * @description The country of the contact
2353
+ */
2354
+ country: string;
2355
+ /**
2356
+ * Created On
2357
+ * Format: date-time
2358
+ * @description The date/time the entry was created on
2359
+ */
2360
+ created_on?: Date;
2361
+ /**
2362
+ * Deleted On
2363
+ * @description The date/time the entry was deleted on
2364
+ */
2365
+ deleted_on?: Date | null;
2366
+ /**
2367
+ * Disclose
2368
+ * @description Whether the contact details should be disclosed. The Disclose function may not work with all TLDs. Some registries still display the data in Whois if, for example, the organization field is filled in.
2369
+ */
2370
+ disclose: boolean;
2371
+ /**
2372
+ * Email
2373
+ * Format: email
2374
+ * @description The email of the contact
2375
+ */
2376
+ email: string;
2377
+ /**
2378
+ * Fax
2379
+ * @description The contacts's fax number
2380
+ */
2381
+ fax?: string | null;
2382
+ /**
2383
+ * First Name
2384
+ * @description The first name of the contact
2385
+ */
2386
+ first_name: string;
2387
+ /**
2388
+ * Last Name
2389
+ * @description The last name of the contact
2390
+ */
2391
+ last_name: string;
2392
+ /**
2393
+ * Org
2394
+ * @description The organization of the contact
2395
+ */
2396
+ org?: string | null;
2397
+ /**
2398
+ * Organization Id
2399
+ * Format: typeid
2400
+ * @description The organization that owns the domain
2401
+ * @default None
2402
+ * @example organization_01h45ytscbebyvny4gc8cr8ma2
2403
+ */
2404
+ organization_id: TypeId<"organization">;
2405
+ /**
2406
+ * Phone
2407
+ * Format: phone
2408
+ * @description The contact's phone number
2409
+ * @example +1.2125552368
2410
+ */
2411
+ phone: string;
2412
+ /**
2413
+ * Postal Code
2414
+ * @description The postal code of the contact
2415
+ */
2416
+ postal_code: string;
2417
+ /**
2418
+ * State
2419
+ * @description The state of the contact
2420
+ */
2421
+ state?: string | null;
2422
+ /**
2423
+ * Street
2424
+ * @description The address of the contact
2425
+ */
2426
+ street: string;
2427
+ /**
2428
+ * Title
2429
+ * @description The title of the contact
2430
+ */
2431
+ title?: string | null;
2432
+ };
2145
2433
  /** ContactHandle */
2146
2434
  ContactHandle: {
2147
2435
  /**
@@ -5058,11 +5346,17 @@ export interface components {
5058
5346
  /** Results */
5059
5347
  results: components["schemas"]["BillingTransactionResponse"][];
5060
5348
  };
5061
- /** Pagination[ContactSchema] */
5062
- Pagination_ContactSchema_: {
5349
+ /** Pagination[ContactAttributeSetResponse] */
5350
+ Pagination_ContactAttributeSetResponse_: {
5063
5351
  pagination: components["schemas"]["PaginationMetadata"];
5064
5352
  /** Results */
5065
- results: components["schemas"]["ContactSchema"][];
5353
+ results: components["schemas"]["ContactAttributeSetResponse"][];
5354
+ };
5355
+ /** Pagination[ContactDetailResponse] */
5356
+ Pagination_ContactDetailResponse_: {
5357
+ pagination: components["schemas"]["PaginationMetadata"];
5358
+ /** Results */
5359
+ results: components["schemas"]["ContactDetailResponse"][];
5066
5360
  };
5067
5361
  /** Pagination[DnsZoneResponse] */
5068
5362
  Pagination_DnsZoneResponse_: {
@@ -6900,7 +7194,7 @@ export interface operations {
6900
7194
  [name: string]: unknown;
6901
7195
  };
6902
7196
  content: {
6903
- "application/json": components["schemas"]["Pagination_ContactSchema_"];
7197
+ "application/json": components["schemas"]["Pagination_ContactDetailResponse_"];
6904
7198
  };
6905
7199
  };
6906
7200
  /** @description Validation Error */
@@ -6947,6 +7241,253 @@ export interface operations {
6947
7241
  };
6948
7242
  };
6949
7243
  };
7244
+ list_attribute_sets_v1_contacts_attribute_sets_get: {
7245
+ parameters: {
7246
+ query?: {
7247
+ /** @description Filter by TLD (e.g. 'de', '.de', 'DE') */
7248
+ tld?: string | null;
7249
+ page?: number;
7250
+ page_size?: number;
7251
+ };
7252
+ header?: never;
7253
+ path?: never;
7254
+ cookie?: never;
7255
+ };
7256
+ requestBody?: never;
7257
+ responses: {
7258
+ /** @description Successful Response */
7259
+ 200: {
7260
+ headers: {
7261
+ [name: string]: unknown;
7262
+ };
7263
+ content: {
7264
+ "application/json": components["schemas"]["Pagination_ContactAttributeSetResponse_"];
7265
+ };
7266
+ };
7267
+ /** @description Validation Error */
7268
+ 422: {
7269
+ headers: {
7270
+ [name: string]: unknown;
7271
+ };
7272
+ content: {
7273
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7274
+ };
7275
+ };
7276
+ };
7277
+ };
7278
+ create_attribute_set_v1_contacts_attribute_sets_post: {
7279
+ parameters: {
7280
+ query?: never;
7281
+ header?: never;
7282
+ path?: never;
7283
+ cookie?: never;
7284
+ };
7285
+ requestBody: {
7286
+ content: {
7287
+ "application/json": components["schemas"]["ContactAttributeSetCreate"];
7288
+ };
7289
+ };
7290
+ responses: {
7291
+ /** @description Successful Response */
7292
+ 201: {
7293
+ headers: {
7294
+ [name: string]: unknown;
7295
+ };
7296
+ content: {
7297
+ "application/json": components["schemas"]["ContactAttributeSetResponse"];
7298
+ };
7299
+ };
7300
+ /** @description Conflict */
7301
+ 409: {
7302
+ headers: {
7303
+ [name: string]: unknown;
7304
+ };
7305
+ content: {
7306
+ /** @example {
7307
+ * "code": "ERROR_CONTACT_ATTRIBUTE_SET_LABEL_ALREADY_EXISTS",
7308
+ * "detail": "A contact attribute set with label 'Additional error context.' already exists",
7309
+ * "label": "Additional error context.",
7310
+ * "status": 409,
7311
+ * "title": "Contact Attribute Set Error",
7312
+ * "type": "contact-attribute-set-label-already-exists"
7313
+ * } */
7314
+ "application/problem+json": components["schemas"]["Problem"];
7315
+ };
7316
+ };
7317
+ /** @description Validation Error */
7318
+ 422: {
7319
+ headers: {
7320
+ [name: string]: unknown;
7321
+ };
7322
+ content: {
7323
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7324
+ };
7325
+ };
7326
+ };
7327
+ };
7328
+ get_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__get: {
7329
+ parameters: {
7330
+ query?: never;
7331
+ header?: never;
7332
+ path: {
7333
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
7334
+ };
7335
+ cookie?: never;
7336
+ };
7337
+ requestBody?: never;
7338
+ responses: {
7339
+ /** @description Successful Response */
7340
+ 200: {
7341
+ headers: {
7342
+ [name: string]: unknown;
7343
+ };
7344
+ content: {
7345
+ "application/json": components["schemas"]["ContactAttributeSetResponse"];
7346
+ };
7347
+ };
7348
+ /** @description Not Found */
7349
+ 404: {
7350
+ headers: {
7351
+ [name: string]: unknown;
7352
+ };
7353
+ content: {
7354
+ /** @example {
7355
+ * "code": "ERROR_CONTACT_ATTRIBUTE_SET_NOT_FOUND",
7356
+ * "contact_attribute_set_id": "Additional error context.",
7357
+ * "detail": "Contact attribute set not found",
7358
+ * "status": 404,
7359
+ * "title": "Contact Attribute Set Error",
7360
+ * "type": "contact-attribute-set-not-found"
7361
+ * } */
7362
+ "application/problem+json": components["schemas"]["Problem"];
7363
+ };
7364
+ };
7365
+ /** @description Validation Error */
7366
+ 422: {
7367
+ headers: {
7368
+ [name: string]: unknown;
7369
+ };
7370
+ content: {
7371
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7372
+ };
7373
+ };
7374
+ };
7375
+ };
7376
+ delete_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__delete: {
7377
+ parameters: {
7378
+ query?: never;
7379
+ header?: never;
7380
+ path: {
7381
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
7382
+ };
7383
+ cookie?: never;
7384
+ };
7385
+ requestBody?: never;
7386
+ responses: {
7387
+ /** @description Successful Response */
7388
+ 204: {
7389
+ headers: {
7390
+ [name: string]: unknown;
7391
+ };
7392
+ content?: never;
7393
+ };
7394
+ /** @description Not Found */
7395
+ 404: {
7396
+ headers: {
7397
+ [name: string]: unknown;
7398
+ };
7399
+ content: {
7400
+ /** @example {
7401
+ * "code": "ERROR_CONTACT_ATTRIBUTE_SET_NOT_FOUND",
7402
+ * "contact_attribute_set_id": "Additional error context.",
7403
+ * "detail": "Contact attribute set not found",
7404
+ * "status": 404,
7405
+ * "title": "Contact Attribute Set Error",
7406
+ * "type": "contact-attribute-set-not-found"
7407
+ * } */
7408
+ "application/problem+json": components["schemas"]["Problem"];
7409
+ };
7410
+ };
7411
+ /** @description Validation Error */
7412
+ 422: {
7413
+ headers: {
7414
+ [name: string]: unknown;
7415
+ };
7416
+ content: {
7417
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7418
+ };
7419
+ };
7420
+ };
7421
+ };
7422
+ update_attribute_set_v1_contacts_attribute_sets__contact_attribute_set_id__patch: {
7423
+ parameters: {
7424
+ query?: never;
7425
+ header?: never;
7426
+ path: {
7427
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
7428
+ };
7429
+ cookie?: never;
7430
+ };
7431
+ requestBody: {
7432
+ content: {
7433
+ "application/json": components["schemas"]["ContactAttributeSetUpdate"];
7434
+ };
7435
+ };
7436
+ responses: {
7437
+ /** @description Successful Response */
7438
+ 200: {
7439
+ headers: {
7440
+ [name: string]: unknown;
7441
+ };
7442
+ content: {
7443
+ "application/json": components["schemas"]["ContactAttributeSetResponse"];
7444
+ };
7445
+ };
7446
+ /** @description Not Found */
7447
+ 404: {
7448
+ headers: {
7449
+ [name: string]: unknown;
7450
+ };
7451
+ content: {
7452
+ /** @example {
7453
+ * "code": "ERROR_CONTACT_ATTRIBUTE_SET_NOT_FOUND",
7454
+ * "contact_attribute_set_id": "Additional error context.",
7455
+ * "detail": "Contact attribute set not found",
7456
+ * "status": 404,
7457
+ * "title": "Contact Attribute Set Error",
7458
+ * "type": "contact-attribute-set-not-found"
7459
+ * } */
7460
+ "application/problem+json": components["schemas"]["Problem"];
7461
+ };
7462
+ };
7463
+ /** @description Conflict */
7464
+ 409: {
7465
+ headers: {
7466
+ [name: string]: unknown;
7467
+ };
7468
+ content: {
7469
+ /** @example {
7470
+ * "code": "ERROR_CONTACT_ATTRIBUTE_SET_LABEL_ALREADY_EXISTS",
7471
+ * "detail": "A contact attribute set with label 'Additional error context.' already exists",
7472
+ * "label": "Additional error context.",
7473
+ * "status": 409,
7474
+ * "title": "Contact Attribute Set Error",
7475
+ * "type": "contact-attribute-set-label-already-exists"
7476
+ * } */
7477
+ "application/problem+json": components["schemas"]["Problem"];
7478
+ };
7479
+ };
7480
+ /** @description Validation Error */
7481
+ 422: {
7482
+ headers: {
7483
+ [name: string]: unknown;
7484
+ };
7485
+ content: {
7486
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7487
+ };
7488
+ };
7489
+ };
7490
+ };
6950
7491
  get_verification_by_token_v1_contacts_verification_get: {
6951
7492
  parameters: {
6952
7493
  query: {
@@ -7130,7 +7671,7 @@ export interface operations {
7130
7671
  [name: string]: unknown;
7131
7672
  };
7132
7673
  content: {
7133
- "application/json": components["schemas"]["ContactSchema"];
7674
+ "application/json": components["schemas"]["ContactDetailResponse"];
7134
7675
  };
7135
7676
  };
7136
7677
  /** @description Not Found */
@@ -7223,6 +7764,65 @@ export interface operations {
7223
7764
  };
7224
7765
  };
7225
7766
  };
7767
+ create_attribute_link_v1_contacts__contact_id__link__contact_attribute_set_id__patch: {
7768
+ parameters: {
7769
+ query?: never;
7770
+ header?: never;
7771
+ path: {
7772
+ contact_id: TypeId<"contact">;
7773
+ contact_attribute_set_id: TypeId<"contact_attribute_set">;
7774
+ };
7775
+ cookie?: never;
7776
+ };
7777
+ requestBody?: never;
7778
+ responses: {
7779
+ /** @description Successful Response */
7780
+ 200: {
7781
+ headers: {
7782
+ [name: string]: unknown;
7783
+ };
7784
+ content: {
7785
+ "application/json": components["schemas"]["ContactAttributeLinkResponse"];
7786
+ };
7787
+ };
7788
+ /** @description Not Found */
7789
+ 404: {
7790
+ headers: {
7791
+ [name: string]: unknown;
7792
+ };
7793
+ content: {
7794
+ "application/problem+json": components["schemas"]["Problem"];
7795
+ };
7796
+ };
7797
+ /** @description Conflict */
7798
+ 409: {
7799
+ headers: {
7800
+ [name: string]: unknown;
7801
+ };
7802
+ content: {
7803
+ /** @example {
7804
+ * "code": "ERROR_CONTACT_ATTRIBUTE_LINK_ALREADY_EXISTS",
7805
+ * "contact_id": "Additional error context.",
7806
+ * "detail": "A contact attribute link already exists for this contact and TLD",
7807
+ * "status": 409,
7808
+ * "title": "Contact Attribute Set Error",
7809
+ * "tld": "",
7810
+ * "type": "contact-attribute-link-already-exists"
7811
+ * } */
7812
+ "application/problem+json": components["schemas"]["Problem"];
7813
+ };
7814
+ };
7815
+ /** @description Validation Error */
7816
+ 422: {
7817
+ headers: {
7818
+ [name: string]: unknown;
7819
+ };
7820
+ content: {
7821
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7822
+ };
7823
+ };
7824
+ };
7825
+ };
7226
7826
  get_verification_status_v1_contacts__contact_id__verification_get: {
7227
7827
  parameters: {
7228
7828
  query?: never;