@opusdns/api 1.145.0 → 1.146.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 +15 -0
- package/src/helpers/endpoints.ts +2 -0
- package/src/helpers/keys.ts +42 -0
- package/src/helpers/permissions.ts +8 -0
- package/src/helpers/requests.d.ts +6 -0
- package/src/helpers/responses.d.ts +9 -0
- package/src/helpers/schemas.d.ts +5 -0
- package/src/openapi.yaml +155 -1
- package/src/schema.d.ts +164 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
AgreementType,
|
|
2
3
|
AllocationMethodType,
|
|
3
4
|
AssignablePublicRole,
|
|
4
5
|
AttributeType,
|
|
@@ -128,6 +129,20 @@ import type {
|
|
|
128
129
|
ZoneSortField,
|
|
129
130
|
} from './schemas';
|
|
130
131
|
|
|
132
|
+
export const AGREEMENT_TYPE = {
|
|
133
|
+
TERMS_AND_CONDITIONS: "terms_and_conditions",
|
|
134
|
+
MASTER_SERVICE_AGREEMENT: "master_service_agreement",
|
|
135
|
+
ACTING_AS_TRADER: "acting_as_trader",
|
|
136
|
+
PARKING_AGREEMENT: "parking_agreement",
|
|
137
|
+
} as const satisfies Record<string, AgreementType>;
|
|
138
|
+
|
|
139
|
+
export const AGREEMENT_TYPE_VALUES = [
|
|
140
|
+
'terms_and_conditions',
|
|
141
|
+
'master_service_agreement',
|
|
142
|
+
'acting_as_trader',
|
|
143
|
+
'parking_agreement',
|
|
144
|
+
] as const satisfies ReadonlyArray<AgreementType>;
|
|
145
|
+
|
|
131
146
|
export const ALLOCATION_METHOD_TYPE = {
|
|
132
147
|
FCFS: "fcfs",
|
|
133
148
|
AUCTION: "auction",
|
package/src/helpers/endpoints.ts
CHANGED
|
@@ -12,6 +12,7 @@ export const ARCHIVE_OBJECT_LOGS_ENDPOINT = '/v1/archive/object-logs';
|
|
|
12
12
|
export const ARCHIVE_OBJECT_LOGS_BY_OBJECT_ID_ENDPOINT = '/v1/archive/object-logs/{object_id}';
|
|
13
13
|
export const ARCHIVE_REQUEST_HISTORY_ENDPOINT = '/v1/archive/request-history';
|
|
14
14
|
export const AUTH_CLIENT_CREDENTIALS_INTROSPECT_ENDPOINT = '/v1/auth/client_credentials/introspect';
|
|
15
|
+
export const AUTH_SIGNUP_ENDPOINT = '/v1/auth/signup';
|
|
15
16
|
export const AUTH_TOKEN_ENDPOINT = '/v1/auth/token';
|
|
16
17
|
export const AVAILABILITY_ENDPOINT = '/v1/availability';
|
|
17
18
|
export const AVAILABILITY_STREAM_ENDPOINT = '/v1/availability/stream';
|
|
@@ -167,6 +168,7 @@ export type Endpoint =
|
|
|
167
168
|
| typeof ARCHIVE_OBJECT_LOGS_BY_OBJECT_ID_ENDPOINT
|
|
168
169
|
| typeof ARCHIVE_REQUEST_HISTORY_ENDPOINT
|
|
169
170
|
| typeof AUTH_CLIENT_CREDENTIALS_INTROSPECT_ENDPOINT
|
|
171
|
+
| typeof AUTH_SIGNUP_ENDPOINT
|
|
170
172
|
| typeof AUTH_TOKEN_ENDPOINT
|
|
171
173
|
| typeof AVAILABILITY_ENDPOINT
|
|
172
174
|
| typeof AVAILABILITY_STREAM_ENDPOINT
|
package/src/helpers/keys.ts
CHANGED
|
@@ -383,6 +383,8 @@ import type {
|
|
|
383
383
|
RgpOperations,
|
|
384
384
|
SetRenewalModeReq,
|
|
385
385
|
SetVanityNameserverSetDefaultRes,
|
|
386
|
+
SignupCreate,
|
|
387
|
+
Signup,
|
|
386
388
|
SldLength,
|
|
387
389
|
StatusChanges,
|
|
388
390
|
StatusCodeStatsBucket,
|
|
@@ -392,6 +394,7 @@ import type {
|
|
|
392
394
|
TagEnriched,
|
|
393
395
|
Tag,
|
|
394
396
|
TagUpdate,
|
|
397
|
+
TermsOfServiceAccept,
|
|
395
398
|
Theme,
|
|
396
399
|
TimeSeriesBucket,
|
|
397
400
|
TldBase,
|
|
@@ -411,6 +414,7 @@ import type {
|
|
|
411
414
|
TransferPoliciesBase,
|
|
412
415
|
User,
|
|
413
416
|
UserAgentStatsBucket,
|
|
417
|
+
UserAgreementAcceptance,
|
|
414
418
|
UserAttributeBase,
|
|
415
419
|
UserAttribute,
|
|
416
420
|
UserCreate,
|
|
@@ -5170,6 +5174,26 @@ export const KEYS_SET_VANITY_NAMESERVER_SET_DEFAULT_RES = [
|
|
|
5170
5174
|
KEY_SET_VANITY_NAMESERVER_SET_DEFAULT_RES_VANITY_NAMESERVER_SET,
|
|
5171
5175
|
] as const satisfies (keyof SetVanityNameserverSetDefaultRes)[];
|
|
5172
5176
|
|
|
5177
|
+
export const KEY_SIGNUP_CREATE_AGREEMENTS = 'agreements' satisfies keyof SignupCreate;
|
|
5178
|
+
export const KEY_SIGNUP_CREATE_ORGANIZATION = 'organization' satisfies keyof SignupCreate;
|
|
5179
|
+
export const KEY_SIGNUP_CREATE_TERMS_OF_SERVICE = 'terms_of_service' satisfies keyof SignupCreate;
|
|
5180
|
+
export const KEY_SIGNUP_CREATE_USER = 'user' satisfies keyof SignupCreate;
|
|
5181
|
+
|
|
5182
|
+
export const KEYS_SIGNUP_CREATE = [
|
|
5183
|
+
KEY_SIGNUP_CREATE_AGREEMENTS,
|
|
5184
|
+
KEY_SIGNUP_CREATE_ORGANIZATION,
|
|
5185
|
+
KEY_SIGNUP_CREATE_TERMS_OF_SERVICE,
|
|
5186
|
+
KEY_SIGNUP_CREATE_USER,
|
|
5187
|
+
] as const satisfies (keyof SignupCreate)[];
|
|
5188
|
+
|
|
5189
|
+
export const KEY_SIGNUP_ORGANIZATION = 'organization' satisfies keyof Signup;
|
|
5190
|
+
export const KEY_SIGNUP_USER = 'user' satisfies keyof Signup;
|
|
5191
|
+
|
|
5192
|
+
export const KEYS_SIGNUP = [
|
|
5193
|
+
KEY_SIGNUP_ORGANIZATION,
|
|
5194
|
+
KEY_SIGNUP_USER,
|
|
5195
|
+
] as const satisfies (keyof Signup)[];
|
|
5196
|
+
|
|
5173
5197
|
export const KEY_SLD_LENGTH_MAX = 'max' satisfies keyof SldLength;
|
|
5174
5198
|
export const KEY_SLD_LENGTH_MIN = 'min' satisfies keyof SldLength;
|
|
5175
5199
|
|
|
@@ -5266,6 +5290,12 @@ export const KEYS_TAG_UPDATE = [
|
|
|
5266
5290
|
KEY_TAG_UPDATE_LABEL,
|
|
5267
5291
|
] as const satisfies (keyof TagUpdate)[];
|
|
5268
5292
|
|
|
5293
|
+
export const KEY_TERMS_OF_SERVICE_ACCEPT_ACCEPTED = 'accepted' satisfies keyof TermsOfServiceAccept;
|
|
5294
|
+
|
|
5295
|
+
export const KEYS_TERMS_OF_SERVICE_ACCEPT = [
|
|
5296
|
+
KEY_TERMS_OF_SERVICE_ACCEPT_ACCEPTED,
|
|
5297
|
+
] as const satisfies (keyof TermsOfServiceAccept)[];
|
|
5298
|
+
|
|
5269
5299
|
export const KEY_THEME_DARK = 'dark' satisfies keyof Theme;
|
|
5270
5300
|
export const KEY_THEME_FONT_FAMILY = 'font_family' satisfies keyof Theme;
|
|
5271
5301
|
export const KEY_THEME_FONT_URL = 'font_url' satisfies keyof Theme;
|
|
@@ -5552,6 +5582,18 @@ export const KEYS_USER_AGENT_STATS_BUCKET = [
|
|
|
5552
5582
|
KEY_USER_AGENT_STATS_BUCKET_UNIQUE,
|
|
5553
5583
|
] as const satisfies (keyof UserAgentStatsBucket)[];
|
|
5554
5584
|
|
|
5585
|
+
export const KEY_USER_AGREEMENT_ACCEPTANCE_ACCEPTED = 'accepted' satisfies keyof UserAgreementAcceptance;
|
|
5586
|
+
export const KEY_USER_AGREEMENT_ACCEPTANCE_TYPE = 'type' satisfies keyof UserAgreementAcceptance;
|
|
5587
|
+
export const KEY_USER_AGREEMENT_ACCEPTANCE_URL = 'url' satisfies keyof UserAgreementAcceptance;
|
|
5588
|
+
export const KEY_USER_AGREEMENT_ACCEPTANCE_VERSION = 'version' satisfies keyof UserAgreementAcceptance;
|
|
5589
|
+
|
|
5590
|
+
export const KEYS_USER_AGREEMENT_ACCEPTANCE = [
|
|
5591
|
+
KEY_USER_AGREEMENT_ACCEPTANCE_ACCEPTED,
|
|
5592
|
+
KEY_USER_AGREEMENT_ACCEPTANCE_TYPE,
|
|
5593
|
+
KEY_USER_AGREEMENT_ACCEPTANCE_URL,
|
|
5594
|
+
KEY_USER_AGREEMENT_ACCEPTANCE_VERSION,
|
|
5595
|
+
] as const satisfies (keyof UserAgreementAcceptance)[];
|
|
5596
|
+
|
|
5555
5597
|
export const KEY_USER_ATTRIBUTE_BASE_KEY = 'key' satisfies keyof UserAttributeBase;
|
|
5556
5598
|
export const KEY_USER_ATTRIBUTE_BASE_VALUE = 'value' satisfies keyof UserAttributeBase;
|
|
5557
5599
|
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
ARCHIVE_OBJECT_LOGS_ENDPOINT,
|
|
17
17
|
ARCHIVE_REQUEST_HISTORY_ENDPOINT,
|
|
18
18
|
AUTH_CLIENT_CREDENTIALS_INTROSPECT_ENDPOINT,
|
|
19
|
+
AUTH_SIGNUP_ENDPOINT,
|
|
19
20
|
AUTH_TOKEN_ENDPOINT,
|
|
20
21
|
AVAILABILITY_ENDPOINT,
|
|
21
22
|
AVAILABILITY_STREAM_ENDPOINT,
|
|
@@ -321,6 +322,13 @@ export const REQUIRED_PERMISSIONS = {
|
|
|
321
322
|
patch: [],
|
|
322
323
|
delete: [],
|
|
323
324
|
},
|
|
325
|
+
[AUTH_SIGNUP_ENDPOINT]: {
|
|
326
|
+
get: [],
|
|
327
|
+
post: [],
|
|
328
|
+
put: [],
|
|
329
|
+
patch: [],
|
|
330
|
+
delete: [],
|
|
331
|
+
},
|
|
324
332
|
[AUTH_TOKEN_ENDPOINT]: {
|
|
325
333
|
get: [],
|
|
326
334
|
post: [],
|
|
@@ -50,6 +50,7 @@ import type {
|
|
|
50
50
|
PublicAuthRequestForm,
|
|
51
51
|
PublicRoleAssignmentRequest,
|
|
52
52
|
SetRenewalModeReq,
|
|
53
|
+
SignupCreate,
|
|
53
54
|
TagCreate,
|
|
54
55
|
TagUpdate,
|
|
55
56
|
UserCreate,
|
|
@@ -175,6 +176,11 @@ export type GET_ArchiveRequestHistory_Request_Query = GET_ArchiveRequestHistory_
|
|
|
175
176
|
export type GET_AuthClientCredentialsIntrospect_Request = {
|
|
176
177
|
};
|
|
177
178
|
|
|
179
|
+
export type POST_AuthSignup_Request = {
|
|
180
|
+
requestBody: SignupCreate;
|
|
181
|
+
};
|
|
182
|
+
export type POST_AuthSignup_Request_Body = POST_AuthSignup_Request['requestBody'];
|
|
183
|
+
|
|
178
184
|
export type POST_AuthToken_Request = {
|
|
179
185
|
requestBody: PublicAuthRequestForm;
|
|
180
186
|
};
|
|
@@ -107,6 +107,7 @@ import type {
|
|
|
107
107
|
RequestAuthcode8,
|
|
108
108
|
RequestAuthcode9,
|
|
109
109
|
SetVanityNameserverSetDefaultRes,
|
|
110
|
+
Signup,
|
|
110
111
|
Tag,
|
|
111
112
|
TldResponseShort,
|
|
112
113
|
TldSpecification,
|
|
@@ -1066,6 +1067,14 @@ export type POST_AiConciergeMemoryFacts_Response_404 = Problem;
|
|
|
1066
1067
|
export type POST_AiConciergeMemoryFacts_Response_422 = HTTPValidationError;
|
|
1067
1068
|
export type POST_AiConciergeMemoryFacts_Response_502 = Problem;
|
|
1068
1069
|
|
|
1070
|
+
export type POST_AuthSignup_Response = POST_AuthSignup_Response_200 | POST_AuthSignup_Response_400 | POST_AuthSignup_Response_403 | POST_AuthSignup_Response_409 | POST_AuthSignup_Response_422;
|
|
1071
|
+
|
|
1072
|
+
export type POST_AuthSignup_Response_200 = Signup;
|
|
1073
|
+
export type POST_AuthSignup_Response_400 = Problem;
|
|
1074
|
+
export type POST_AuthSignup_Response_403 = Problem;
|
|
1075
|
+
export type POST_AuthSignup_Response_409 = Problem;
|
|
1076
|
+
export type POST_AuthSignup_Response_422 = Problem;
|
|
1077
|
+
|
|
1069
1078
|
export type POST_AuthToken_Response = POST_AuthToken_Response_401;
|
|
1070
1079
|
|
|
1071
1080
|
export type POST_AuthToken_Response_401 = Problem;
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type AggregationRow = components['schemas']['AggregationRow'];
|
|
|
5
5
|
export type AggregationsContext = components['schemas']['AggregationsContext'];
|
|
6
6
|
export type AggregationsContextCreate = components['schemas']['AggregationsContextCreate'];
|
|
7
7
|
export type AggregationsContextPayload = components['schemas']['AggregationsContextPayload'];
|
|
8
|
+
export type AgreementType = components['schemas']['AgreementType'];
|
|
8
9
|
export type AiInferenceUsageBucket = components['schemas']['AiInferenceUsageBucket'];
|
|
9
10
|
export type AiInferenceUsageGroup = components['schemas']['AiInferenceUsageGroup'];
|
|
10
11
|
export type AiInferenceUsageSeries = components['schemas']['AiInferenceUsageSeriesResponse'];
|
|
@@ -504,6 +505,8 @@ export type ReservedSourceType = components['schemas']['ReservedSourceType'];
|
|
|
504
505
|
export type RgpOperations = components['schemas']['RgpOperations'];
|
|
505
506
|
export type SetRenewalModeReq = components['schemas']['SetRenewalModeReq'];
|
|
506
507
|
export type SetVanityNameserverSetDefaultRes = components['schemas']['SetVanityNameserverSetDefaultRes'];
|
|
508
|
+
export type SignupCreate = components['schemas']['SignupCreate'];
|
|
509
|
+
export type Signup = components['schemas']['SignupResponse'];
|
|
507
510
|
export type SldLength = components['schemas']['SldLength'];
|
|
508
511
|
export type SortOrder = components['schemas']['SortOrder'];
|
|
509
512
|
export type StatusChanges = components['schemas']['StatusChanges'];
|
|
@@ -522,6 +525,7 @@ export type Tag = components['schemas']['TagResponse'];
|
|
|
522
525
|
export type TagSortField = components['schemas']['TagSortField'];
|
|
523
526
|
export type TagType = components['schemas']['TagType'];
|
|
524
527
|
export type TagUpdate = components['schemas']['TagUpdate'];
|
|
528
|
+
export type TermsOfServiceAccept = components['schemas']['TermsOfServiceAccept'];
|
|
525
529
|
export type Theme = components['schemas']['Theme'];
|
|
526
530
|
export type TimeRange = components['schemas']['TimeRange'];
|
|
527
531
|
export type TimeSeriesBucket = components['schemas']['TimeSeriesBucket'];
|
|
@@ -545,6 +549,7 @@ export type UsageGranularity = components['schemas']['UsageGranularity'];
|
|
|
545
549
|
export type UsageProduct = components['schemas']['UsageProduct'];
|
|
546
550
|
export type User = components['schemas']['User'];
|
|
547
551
|
export type UserAgentStatsBucket = components['schemas']['UserAgentStatsBucket'];
|
|
552
|
+
export type UserAgreementAcceptance = components['schemas']['UserAgreementAcceptance'];
|
|
548
553
|
export type UserAttributeBase = components['schemas']['UserAttributeBase'];
|
|
549
554
|
export type UserAttribute = components['schemas']['UserAttributeResponse'];
|
|
550
555
|
export type UserCreate = components['schemas']['UserCreate'];
|
package/src/openapi.yaml
CHANGED
|
@@ -152,6 +152,14 @@ components:
|
|
|
152
152
|
- aggregations
|
|
153
153
|
title: AggregationsContextPayload
|
|
154
154
|
type: object
|
|
155
|
+
AgreementType:
|
|
156
|
+
enum:
|
|
157
|
+
- terms_and_conditions
|
|
158
|
+
- master_service_agreement
|
|
159
|
+
- acting_as_trader
|
|
160
|
+
- parking_agreement
|
|
161
|
+
title: AgreementType
|
|
162
|
+
type: string
|
|
155
163
|
AiInferenceUsageBucket:
|
|
156
164
|
properties:
|
|
157
165
|
groups:
|
|
@@ -12812,6 +12820,43 @@ components:
|
|
|
12812
12820
|
- vanity_nameserver_set
|
|
12813
12821
|
title: SetVanityNameserverSetDefaultRes
|
|
12814
12822
|
type: object
|
|
12823
|
+
SignupCreate:
|
|
12824
|
+
properties:
|
|
12825
|
+
agreements:
|
|
12826
|
+
anyOf:
|
|
12827
|
+
- items:
|
|
12828
|
+
$ref: '#/components/schemas/UserAgreementAcceptance'
|
|
12829
|
+
type: array
|
|
12830
|
+
- type: 'null'
|
|
12831
|
+
description: User agreement acceptances.
|
|
12832
|
+
title: Agreements
|
|
12833
|
+
organization:
|
|
12834
|
+
$ref: '#/components/schemas/OrganizationCreate'
|
|
12835
|
+
description: Organization signup.
|
|
12836
|
+
terms_of_service:
|
|
12837
|
+
anyOf:
|
|
12838
|
+
- $ref: '#/components/schemas/TermsOfServiceAccept'
|
|
12839
|
+
- type: 'null'
|
|
12840
|
+
description: Terms of service acceptance (legacy).
|
|
12841
|
+
user:
|
|
12842
|
+
$ref: '#/components/schemas/UserCreate'
|
|
12843
|
+
description: User signup to platform.
|
|
12844
|
+
required:
|
|
12845
|
+
- user
|
|
12846
|
+
- organization
|
|
12847
|
+
title: SignupCreate
|
|
12848
|
+
type: object
|
|
12849
|
+
SignupResponse:
|
|
12850
|
+
properties:
|
|
12851
|
+
organization:
|
|
12852
|
+
$ref: '#/components/schemas/Organization'
|
|
12853
|
+
user:
|
|
12854
|
+
$ref: '#/components/schemas/User'
|
|
12855
|
+
required:
|
|
12856
|
+
- user
|
|
12857
|
+
- organization
|
|
12858
|
+
title: SignupResponse
|
|
12859
|
+
type: object
|
|
12815
12860
|
SldLength:
|
|
12816
12861
|
properties:
|
|
12817
12862
|
max:
|
|
@@ -13103,6 +13148,16 @@ components:
|
|
|
13103
13148
|
title: Label
|
|
13104
13149
|
title: TagUpdate
|
|
13105
13150
|
type: object
|
|
13151
|
+
TermsOfServiceAccept:
|
|
13152
|
+
properties:
|
|
13153
|
+
accepted:
|
|
13154
|
+
description: The organization accepts Terms of Service.
|
|
13155
|
+
title: Accepted
|
|
13156
|
+
type: boolean
|
|
13157
|
+
required:
|
|
13158
|
+
- accepted
|
|
13159
|
+
title: TermsOfServiceAccept
|
|
13160
|
+
type: object
|
|
13106
13161
|
Theme:
|
|
13107
13162
|
properties:
|
|
13108
13163
|
dark:
|
|
@@ -13821,6 +13876,35 @@ components:
|
|
|
13821
13876
|
- unique
|
|
13822
13877
|
title: UserAgentStatsBucket
|
|
13823
13878
|
type: object
|
|
13879
|
+
UserAgreementAcceptance:
|
|
13880
|
+
properties:
|
|
13881
|
+
accepted:
|
|
13882
|
+
description: Whether the agreement has been accepted.
|
|
13883
|
+
title: Accepted
|
|
13884
|
+
type: boolean
|
|
13885
|
+
type:
|
|
13886
|
+
$ref: '#/components/schemas/AgreementType'
|
|
13887
|
+
description: Type of agreement being accepted.
|
|
13888
|
+
url:
|
|
13889
|
+
anyOf:
|
|
13890
|
+
- format: uri
|
|
13891
|
+
maxLength: 2083
|
|
13892
|
+
minLength: 1
|
|
13893
|
+
type: string
|
|
13894
|
+
- type: 'null'
|
|
13895
|
+
description: URL where the agreement can be found.
|
|
13896
|
+
title: Url
|
|
13897
|
+
version:
|
|
13898
|
+
anyOf:
|
|
13899
|
+
- type: string
|
|
13900
|
+
- type: 'null'
|
|
13901
|
+
description: Version of the agreement being accepted.
|
|
13902
|
+
title: Version
|
|
13903
|
+
required:
|
|
13904
|
+
- type
|
|
13905
|
+
- accepted
|
|
13906
|
+
title: UserAgreementAcceptance
|
|
13907
|
+
type: object
|
|
13824
13908
|
UserAttributeBase:
|
|
13825
13909
|
properties:
|
|
13826
13910
|
key:
|
|
@@ -15814,7 +15898,7 @@ info:
|
|
|
15814
15898
|
\n\n"
|
|
15815
15899
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
15816
15900
|
title: OpusDNS API
|
|
15817
|
-
version: 2026-
|
|
15901
|
+
version: 2026-09-01-125121
|
|
15818
15902
|
x-logo:
|
|
15819
15903
|
altText: OpusDNS API Reference
|
|
15820
15904
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -17754,6 +17838,76 @@ paths:
|
|
|
17754
17838
|
summary: Introspect the current API key
|
|
17755
17839
|
tags:
|
|
17756
17840
|
- authentication
|
|
17841
|
+
/v1/auth/signup:
|
|
17842
|
+
post:
|
|
17843
|
+
operationId: signup_v1_auth_signup_post
|
|
17844
|
+
parameters:
|
|
17845
|
+
- $ref: '#/components/parameters/DatetimeFormatHeader'
|
|
17846
|
+
requestBody:
|
|
17847
|
+
content:
|
|
17848
|
+
application/json:
|
|
17849
|
+
schema:
|
|
17850
|
+
$ref: '#/components/schemas/SignupCreate'
|
|
17851
|
+
required: true
|
|
17852
|
+
responses:
|
|
17853
|
+
'200':
|
|
17854
|
+
content:
|
|
17855
|
+
application/json:
|
|
17856
|
+
schema:
|
|
17857
|
+
$ref: '#/components/schemas/SignupResponse'
|
|
17858
|
+
description: Successful Response
|
|
17859
|
+
'400':
|
|
17860
|
+
content:
|
|
17861
|
+
application/problem+json:
|
|
17862
|
+
example:
|
|
17863
|
+
code: ERROR_PASSWORD_POLICY
|
|
17864
|
+
detail: Password policy violation
|
|
17865
|
+
status: 400
|
|
17866
|
+
title: User Management Error
|
|
17867
|
+
type: user
|
|
17868
|
+
schema:
|
|
17869
|
+
$ref: '#/components/schemas/Problem'
|
|
17870
|
+
description: Bad Request
|
|
17871
|
+
'403':
|
|
17872
|
+
content:
|
|
17873
|
+
application/problem+json:
|
|
17874
|
+
example:
|
|
17875
|
+
code: ERROR_SIGNUP_NOT_ALLOWED
|
|
17876
|
+
detail: Additional error context.
|
|
17877
|
+
status: 403
|
|
17878
|
+
title: Organization Management Error
|
|
17879
|
+
type: signup-not-allowed
|
|
17880
|
+
schema:
|
|
17881
|
+
$ref: '#/components/schemas/Problem'
|
|
17882
|
+
description: Forbidden
|
|
17883
|
+
'409':
|
|
17884
|
+
content:
|
|
17885
|
+
application/problem+json:
|
|
17886
|
+
example:
|
|
17887
|
+
code: ERROR_USER_EXISTS
|
|
17888
|
+
detail: User with username or email already exists
|
|
17889
|
+
status: 409
|
|
17890
|
+
title: User Management Error
|
|
17891
|
+
type: user-already-present
|
|
17892
|
+
user: Additional error context.
|
|
17893
|
+
schema:
|
|
17894
|
+
$ref: '#/components/schemas/Problem'
|
|
17895
|
+
description: Conflict
|
|
17896
|
+
'422':
|
|
17897
|
+
content:
|
|
17898
|
+
application/problem+json:
|
|
17899
|
+
example:
|
|
17900
|
+
code: ERROR_BILLING_CURRENCY_REQUIRED
|
|
17901
|
+
detail: Additional error context.
|
|
17902
|
+
status: 422
|
|
17903
|
+
title: Billing Error
|
|
17904
|
+
type: billing-customer-currency-required
|
|
17905
|
+
schema:
|
|
17906
|
+
$ref: '#/components/schemas/Problem'
|
|
17907
|
+
description: Unprocessable Content
|
|
17908
|
+
summary: Signup
|
|
17909
|
+
tags:
|
|
17910
|
+
- authentication
|
|
17757
17911
|
/v1/auth/token:
|
|
17758
17912
|
post:
|
|
17759
17913
|
operationId: issue_organization_token_v1_auth_token_post
|
package/src/schema.d.ts
CHANGED
|
@@ -275,6 +275,23 @@ export interface paths {
|
|
|
275
275
|
patch?: never;
|
|
276
276
|
trace?: never;
|
|
277
277
|
};
|
|
278
|
+
"/v1/auth/signup": {
|
|
279
|
+
parameters: {
|
|
280
|
+
query?: never;
|
|
281
|
+
header?: never;
|
|
282
|
+
path?: never;
|
|
283
|
+
cookie?: never;
|
|
284
|
+
};
|
|
285
|
+
get?: never;
|
|
286
|
+
put?: never;
|
|
287
|
+
/** Signup */
|
|
288
|
+
post: operations["signup_v1_auth_signup_post"];
|
|
289
|
+
delete?: never;
|
|
290
|
+
options?: never;
|
|
291
|
+
head?: never;
|
|
292
|
+
patch?: never;
|
|
293
|
+
trace?: never;
|
|
294
|
+
};
|
|
278
295
|
"/v1/auth/token": {
|
|
279
296
|
parameters: {
|
|
280
297
|
query?: never;
|
|
@@ -3182,6 +3199,11 @@ export interface components {
|
|
|
3182
3199
|
/** Total */
|
|
3183
3200
|
total?: number | null;
|
|
3184
3201
|
};
|
|
3202
|
+
/**
|
|
3203
|
+
* AgreementType
|
|
3204
|
+
* @enum {string}
|
|
3205
|
+
*/
|
|
3206
|
+
AgreementType: "terms_and_conditions" | "master_service_agreement" | "acting_as_trader" | "parking_agreement";
|
|
3185
3207
|
/** AiInferenceUsageBucket */
|
|
3186
3208
|
AiInferenceUsageBucket: {
|
|
3187
3209
|
/** Groups */
|
|
@@ -11376,6 +11398,25 @@ export interface components {
|
|
|
11376
11398
|
/** @description The set that is now the org's default (or unchanged set on a no-op 200). */
|
|
11377
11399
|
vanity_nameserver_set: components["schemas"]["VanityNameserverSetDTO"];
|
|
11378
11400
|
};
|
|
11401
|
+
/** SignupCreate */
|
|
11402
|
+
SignupCreate: {
|
|
11403
|
+
/**
|
|
11404
|
+
* Agreements
|
|
11405
|
+
* @description User agreement acceptances.
|
|
11406
|
+
*/
|
|
11407
|
+
agreements?: components["schemas"]["UserAgreementAcceptance"][] | null;
|
|
11408
|
+
/** @description Organization signup. */
|
|
11409
|
+
organization: components["schemas"]["OrganizationCreate"];
|
|
11410
|
+
/** @description Terms of service acceptance (legacy). */
|
|
11411
|
+
terms_of_service?: components["schemas"]["TermsOfServiceAccept"] | null;
|
|
11412
|
+
/** @description User signup to platform. */
|
|
11413
|
+
user: components["schemas"]["UserCreate"];
|
|
11414
|
+
};
|
|
11415
|
+
/** SignupResponse */
|
|
11416
|
+
SignupResponse: {
|
|
11417
|
+
organization: components["schemas"]["Organization"];
|
|
11418
|
+
user: components["schemas"]["User"];
|
|
11419
|
+
};
|
|
11379
11420
|
/** SldLength */
|
|
11380
11421
|
SldLength: {
|
|
11381
11422
|
/**
|
|
@@ -11569,6 +11610,14 @@ export interface components {
|
|
|
11569
11610
|
*/
|
|
11570
11611
|
label?: string | null;
|
|
11571
11612
|
};
|
|
11613
|
+
/** TermsOfServiceAccept */
|
|
11614
|
+
TermsOfServiceAccept: {
|
|
11615
|
+
/**
|
|
11616
|
+
* Accepted
|
|
11617
|
+
* @description The organization accepts Terms of Service.
|
|
11618
|
+
*/
|
|
11619
|
+
accepted: boolean;
|
|
11620
|
+
};
|
|
11572
11621
|
/** Theme */
|
|
11573
11622
|
Theme: {
|
|
11574
11623
|
dark?: components["schemas"]["Palette"] | null;
|
|
@@ -12059,6 +12108,26 @@ export interface components {
|
|
|
12059
12108
|
/** Unique */
|
|
12060
12109
|
unique: number;
|
|
12061
12110
|
};
|
|
12111
|
+
/** UserAgreementAcceptance */
|
|
12112
|
+
UserAgreementAcceptance: {
|
|
12113
|
+
/**
|
|
12114
|
+
* Accepted
|
|
12115
|
+
* @description Whether the agreement has been accepted.
|
|
12116
|
+
*/
|
|
12117
|
+
accepted: boolean;
|
|
12118
|
+
/** @description Type of agreement being accepted. */
|
|
12119
|
+
type: components["schemas"]["AgreementType"];
|
|
12120
|
+
/**
|
|
12121
|
+
* Url
|
|
12122
|
+
* @description URL where the agreement can be found.
|
|
12123
|
+
*/
|
|
12124
|
+
url?: string | null;
|
|
12125
|
+
/**
|
|
12126
|
+
* Version
|
|
12127
|
+
* @description Version of the agreement being accepted.
|
|
12128
|
+
*/
|
|
12129
|
+
version?: string | null;
|
|
12130
|
+
};
|
|
12062
12131
|
/** UserAttributeBase */
|
|
12063
12132
|
UserAttributeBase: {
|
|
12064
12133
|
/**
|
|
@@ -15044,6 +15113,101 @@ export interface operations {
|
|
|
15044
15113
|
};
|
|
15045
15114
|
};
|
|
15046
15115
|
};
|
|
15116
|
+
signup_v1_auth_signup_post: {
|
|
15117
|
+
parameters: {
|
|
15118
|
+
query?: never;
|
|
15119
|
+
header?: {
|
|
15120
|
+
/**
|
|
15121
|
+
* @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.
|
|
15122
|
+
* @example rfc3339
|
|
15123
|
+
*/
|
|
15124
|
+
"X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
|
|
15125
|
+
};
|
|
15126
|
+
path?: never;
|
|
15127
|
+
cookie?: never;
|
|
15128
|
+
};
|
|
15129
|
+
requestBody: {
|
|
15130
|
+
content: {
|
|
15131
|
+
"application/json": components["schemas"]["SignupCreate"];
|
|
15132
|
+
};
|
|
15133
|
+
};
|
|
15134
|
+
responses: {
|
|
15135
|
+
/** @description Successful Response */
|
|
15136
|
+
200: {
|
|
15137
|
+
headers: {
|
|
15138
|
+
[name: string]: unknown;
|
|
15139
|
+
};
|
|
15140
|
+
content: {
|
|
15141
|
+
"application/json": components["schemas"]["SignupResponse"];
|
|
15142
|
+
};
|
|
15143
|
+
};
|
|
15144
|
+
/** @description Bad Request */
|
|
15145
|
+
400: {
|
|
15146
|
+
headers: {
|
|
15147
|
+
[name: string]: unknown;
|
|
15148
|
+
};
|
|
15149
|
+
content: {
|
|
15150
|
+
/** @example {
|
|
15151
|
+
* "code": "ERROR_PASSWORD_POLICY",
|
|
15152
|
+
* "detail": "Password policy violation",
|
|
15153
|
+
* "status": 400,
|
|
15154
|
+
* "title": "User Management Error",
|
|
15155
|
+
* "type": "user"
|
|
15156
|
+
* } */
|
|
15157
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
15158
|
+
};
|
|
15159
|
+
};
|
|
15160
|
+
/** @description Forbidden */
|
|
15161
|
+
403: {
|
|
15162
|
+
headers: {
|
|
15163
|
+
[name: string]: unknown;
|
|
15164
|
+
};
|
|
15165
|
+
content: {
|
|
15166
|
+
/** @example {
|
|
15167
|
+
* "code": "ERROR_SIGNUP_NOT_ALLOWED",
|
|
15168
|
+
* "detail": "Additional error context.",
|
|
15169
|
+
* "status": 403,
|
|
15170
|
+
* "title": "Organization Management Error",
|
|
15171
|
+
* "type": "signup-not-allowed"
|
|
15172
|
+
* } */
|
|
15173
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
15174
|
+
};
|
|
15175
|
+
};
|
|
15176
|
+
/** @description Conflict */
|
|
15177
|
+
409: {
|
|
15178
|
+
headers: {
|
|
15179
|
+
[name: string]: unknown;
|
|
15180
|
+
};
|
|
15181
|
+
content: {
|
|
15182
|
+
/** @example {
|
|
15183
|
+
* "code": "ERROR_USER_EXISTS",
|
|
15184
|
+
* "detail": "User with username or email already exists",
|
|
15185
|
+
* "status": 409,
|
|
15186
|
+
* "title": "User Management Error",
|
|
15187
|
+
* "type": "user-already-present",
|
|
15188
|
+
* "user": "Additional error context."
|
|
15189
|
+
* } */
|
|
15190
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
15191
|
+
};
|
|
15192
|
+
};
|
|
15193
|
+
/** @description Unprocessable Content */
|
|
15194
|
+
422: {
|
|
15195
|
+
headers: {
|
|
15196
|
+
[name: string]: unknown;
|
|
15197
|
+
};
|
|
15198
|
+
content: {
|
|
15199
|
+
/** @example {
|
|
15200
|
+
* "code": "ERROR_BILLING_CURRENCY_REQUIRED",
|
|
15201
|
+
* "detail": "Additional error context.",
|
|
15202
|
+
* "status": 422,
|
|
15203
|
+
* "title": "Billing Error",
|
|
15204
|
+
* "type": "billing-customer-currency-required"
|
|
15205
|
+
* } */
|
|
15206
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
15207
|
+
};
|
|
15208
|
+
};
|
|
15209
|
+
};
|
|
15210
|
+
};
|
|
15047
15211
|
issue_organization_token_v1_auth_token_post: {
|
|
15048
15212
|
parameters: {
|
|
15049
15213
|
query?: never;
|