@distilled.cloud/cloudflare 0.12.3 → 0.12.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/lib/services/accounts.d.ts +52 -52
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1533 -569
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/d1.d.ts +7 -1
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +4 -1
- package/lib/services/d1.js.map +1 -1
- package/lib/services/pipelines.d.ts +35 -5
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +25 -6
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +14 -14
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +1192 -413
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +32 -32
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +873 -391
- package/lib/services/r2.js.map +1 -1
- package/lib/services/user.d.ts +36 -5
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +32 -5
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers.d.ts +7 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +4 -1
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +8 -2
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +5 -2
- package/lib/services/workflows.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +3546 -1036
- package/src/services/d1.ts +9 -2
- package/src/services/pipelines.ts +56 -11
- package/src/services/queues.ts +2978 -829
- package/src/services/r2.ts +2232 -848
- package/src/services/user.ts +66 -10
- package/src/services/workers.ts +11 -2
- package/src/services/workflows.ts +10 -2
package/lib/services/accounts.js
CHANGED
|
@@ -13,98 +13,155 @@ import {} from "../errors.js";
|
|
|
13
13
|
// =============================================================================
|
|
14
14
|
export class AccountCreationForbidden extends Schema.TaggedErrorClass()("AccountCreationForbidden", { code: Schema.Number, message: Schema.String }) {
|
|
15
15
|
}
|
|
16
|
-
T.applyErrorMatchers(AccountCreationForbidden, [{
|
|
16
|
+
T.applyErrorMatchers(AccountCreationForbidden, [{ code: 1002 }]);
|
|
17
17
|
export class AccountNameTooLong extends Schema.TaggedErrorClass()("AccountNameTooLong", { code: Schema.Number, message: Schema.String }) {
|
|
18
18
|
}
|
|
19
|
-
T.applyErrorMatchers(AccountNameTooLong, [
|
|
19
|
+
T.applyErrorMatchers(AccountNameTooLong, [
|
|
20
|
+
{ code: 1001, message: { includes: "too long" } },
|
|
21
|
+
]);
|
|
20
22
|
export class BadRequest extends Schema.TaggedErrorClass()("BadRequest", { code: Schema.Number, message: Schema.String }) {
|
|
21
23
|
}
|
|
22
|
-
T.applyErrorMatchers(BadRequest, [{
|
|
24
|
+
T.applyErrorMatchers(BadRequest, [{ code: 400 }]);
|
|
23
25
|
export class EndpointNotFound extends Schema.TaggedErrorClass()("EndpointNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
24
26
|
}
|
|
25
|
-
T.applyErrorMatchers(EndpointNotFound, [{
|
|
27
|
+
T.applyErrorMatchers(EndpointNotFound, [{ code: 1199 }]);
|
|
26
28
|
export class InvalidAccountName extends Schema.TaggedErrorClass()("InvalidAccountName", { code: Schema.Number, message: Schema.String }) {
|
|
27
29
|
}
|
|
28
|
-
T.applyErrorMatchers(InvalidAccountName, [
|
|
30
|
+
T.applyErrorMatchers(InvalidAccountName, [
|
|
31
|
+
{ code: 1001, message: { includes: "invalid character" } },
|
|
32
|
+
]);
|
|
29
33
|
export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
|
|
30
34
|
}
|
|
31
|
-
T.applyErrorMatchers(InvalidRoute, [{
|
|
35
|
+
T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
|
|
32
36
|
export class InvalidTokenName extends Schema.TaggedErrorClass()("InvalidTokenName", { code: Schema.Number, message: Schema.String }) {
|
|
33
37
|
}
|
|
34
|
-
T.applyErrorMatchers(InvalidTokenName, [
|
|
38
|
+
T.applyErrorMatchers(InvalidTokenName, [
|
|
39
|
+
{ code: 400, message: { includes: "name must have a length" } },
|
|
40
|
+
]);
|
|
35
41
|
export class JsonDecodeFailure extends Schema.TaggedErrorClass()("JsonDecodeFailure", { code: Schema.Number, message: Schema.String }) {
|
|
36
42
|
}
|
|
37
|
-
T.applyErrorMatchers(JsonDecodeFailure, [{
|
|
43
|
+
T.applyErrorMatchers(JsonDecodeFailure, [{ code: 1198 }]);
|
|
38
44
|
export class MemberNotFound extends Schema.TaggedErrorClass()("MemberNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
39
45
|
}
|
|
40
|
-
T.applyErrorMatchers(MemberNotFound, [{
|
|
46
|
+
T.applyErrorMatchers(MemberNotFound, [{ code: 1003 }]);
|
|
41
47
|
export class MethodNotAllowed extends Schema.TaggedErrorClass()("MethodNotAllowed", { code: Schema.Number, message: Schema.String }) {
|
|
42
48
|
}
|
|
43
|
-
T.applyErrorMatchers(MethodNotAllowed, [
|
|
49
|
+
T.applyErrorMatchers(MethodNotAllowed, [
|
|
50
|
+
{ code: 7001 },
|
|
51
|
+
{ code: 10000 },
|
|
52
|
+
{ code: 10405 },
|
|
53
|
+
]);
|
|
44
54
|
export class MissingAuthenticationToken extends Schema.TaggedErrorClass()("MissingAuthenticationToken", { code: Schema.Number, message: Schema.String }) {
|
|
45
55
|
}
|
|
46
|
-
T.applyErrorMatchers(MissingAuthenticationToken, [{
|
|
56
|
+
T.applyErrorMatchers(MissingAuthenticationToken, [{ code: 1001 }]);
|
|
47
57
|
export class MissingName extends Schema.TaggedErrorClass()("MissingName", { code: Schema.Number, message: Schema.String }) {
|
|
48
58
|
}
|
|
49
|
-
T.applyErrorMatchers(MissingName, [{
|
|
59
|
+
T.applyErrorMatchers(MissingName, [{ code: 1001 }]);
|
|
50
60
|
export class PermissionGroupNotFound extends Schema.TaggedErrorClass()("PermissionGroupNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
51
61
|
}
|
|
52
|
-
T.applyErrorMatchers(PermissionGroupNotFound, [
|
|
62
|
+
T.applyErrorMatchers(PermissionGroupNotFound, [
|
|
63
|
+
{ code: 1001, message: { includes: "Permission group" } },
|
|
64
|
+
]);
|
|
53
65
|
export class TokenNotFound extends Schema.TaggedErrorClass()("TokenNotFound", { code: Schema.Number, message: Schema.String }) {
|
|
54
66
|
}
|
|
55
|
-
T.applyErrorMatchers(TokenNotFound, [{
|
|
67
|
+
T.applyErrorMatchers(TokenNotFound, [{ code: 1003 }]);
|
|
56
68
|
export class UpdateAccountTypeNotSupported extends Schema.TaggedErrorClass()("UpdateAccountTypeNotSupported", { code: Schema.Number, message: Schema.String }) {
|
|
57
69
|
}
|
|
58
|
-
T.applyErrorMatchers(UpdateAccountTypeNotSupported, [
|
|
70
|
+
T.applyErrorMatchers(UpdateAccountTypeNotSupported, [
|
|
71
|
+
{ code: 1001, message: { includes: "account type is not supported" } },
|
|
72
|
+
]);
|
|
59
73
|
export class ValidationError extends Schema.TaggedErrorClass()("ValidationError", { code: Schema.Number, message: Schema.String }) {
|
|
60
74
|
}
|
|
61
|
-
T.applyErrorMatchers(ValidationError, [{
|
|
75
|
+
T.applyErrorMatchers(ValidationError, [{ code: 1001 }]);
|
|
62
76
|
export const GetAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
63
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
64
|
-
})
|
|
65
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" }));
|
|
77
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
78
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" }));
|
|
66
79
|
export const GetAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
67
80
|
id: Schema.String,
|
|
68
81
|
name: Schema.String,
|
|
69
82
|
type: Schema.Literals(["standard", "enterprise"]),
|
|
70
83
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
71
|
-
managedBy: Schema.optional(Schema.Union([
|
|
84
|
+
managedBy: Schema.optional(Schema.Union([
|
|
85
|
+
Schema.Struct({
|
|
72
86
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
73
|
-
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
74
|
-
}).pipe(Schema.encodeKeys({
|
|
75
|
-
|
|
87
|
+
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
88
|
+
}).pipe(Schema.encodeKeys({
|
|
89
|
+
parentOrgId: "parent_org_id",
|
|
90
|
+
parentOrgName: "parent_org_name",
|
|
91
|
+
})),
|
|
92
|
+
Schema.Null,
|
|
93
|
+
])),
|
|
94
|
+
settings: Schema.optional(Schema.Union([
|
|
95
|
+
Schema.Struct({
|
|
76
96
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
77
|
-
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
78
|
-
}).pipe(Schema.encodeKeys({
|
|
79
|
-
|
|
97
|
+
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
98
|
+
}).pipe(Schema.encodeKeys({
|
|
99
|
+
abuseContactEmail: "abuse_contact_email",
|
|
100
|
+
enforceTwofactor: "enforce_twofactor",
|
|
101
|
+
})),
|
|
102
|
+
Schema.Null,
|
|
103
|
+
])),
|
|
104
|
+
})
|
|
105
|
+
.pipe(Schema.encodeKeys({
|
|
106
|
+
id: "id",
|
|
107
|
+
name: "name",
|
|
108
|
+
type: "type",
|
|
109
|
+
createdOn: "created_on",
|
|
110
|
+
managedBy: "managed_by",
|
|
111
|
+
settings: "settings",
|
|
112
|
+
}))
|
|
113
|
+
.pipe(T.ResponsePath("result"));
|
|
80
114
|
export const getAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
81
115
|
input: GetAccountRequest,
|
|
82
116
|
output: GetAccountResponse,
|
|
83
117
|
errors: [InvalidRoute],
|
|
84
118
|
}));
|
|
85
|
-
export const ListAccountsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({})
|
|
86
|
-
.pipe(T.Http({ method: "GET", path: "/accounts" }));
|
|
119
|
+
export const ListAccountsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/accounts" }));
|
|
87
120
|
export const ListAccountsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
88
121
|
result: Schema.Array(Schema.Struct({
|
|
89
122
|
id: Schema.String,
|
|
90
123
|
name: Schema.String,
|
|
91
124
|
type: Schema.Literals(["standard", "enterprise"]),
|
|
92
125
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
93
|
-
managedBy: Schema.optional(Schema.Union([
|
|
126
|
+
managedBy: Schema.optional(Schema.Union([
|
|
127
|
+
Schema.Struct({
|
|
94
128
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
95
|
-
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
96
|
-
}).pipe(Schema.encodeKeys({
|
|
97
|
-
|
|
129
|
+
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
130
|
+
}).pipe(Schema.encodeKeys({
|
|
131
|
+
parentOrgId: "parent_org_id",
|
|
132
|
+
parentOrgName: "parent_org_name",
|
|
133
|
+
})),
|
|
134
|
+
Schema.Null,
|
|
135
|
+
])),
|
|
136
|
+
settings: Schema.optional(Schema.Union([
|
|
137
|
+
Schema.Struct({
|
|
98
138
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
99
|
-
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
100
|
-
}).pipe(Schema.encodeKeys({
|
|
101
|
-
|
|
139
|
+
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
140
|
+
}).pipe(Schema.encodeKeys({
|
|
141
|
+
abuseContactEmail: "abuse_contact_email",
|
|
142
|
+
enforceTwofactor: "enforce_twofactor",
|
|
143
|
+
})),
|
|
144
|
+
Schema.Null,
|
|
145
|
+
])),
|
|
146
|
+
}).pipe(Schema.encodeKeys({
|
|
147
|
+
id: "id",
|
|
148
|
+
name: "name",
|
|
149
|
+
type: "type",
|
|
150
|
+
createdOn: "created_on",
|
|
151
|
+
managedBy: "managed_by",
|
|
152
|
+
settings: "settings",
|
|
153
|
+
}))),
|
|
102
154
|
resultInfo: Schema.Struct({
|
|
103
155
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
104
156
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
105
157
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
106
|
-
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
|
|
107
|
-
}).pipe(Schema.encodeKeys({
|
|
158
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
159
|
+
}).pipe(Schema.encodeKeys({
|
|
160
|
+
count: "count",
|
|
161
|
+
page: "page",
|
|
162
|
+
perPage: "per_page",
|
|
163
|
+
totalCount: "total_count",
|
|
164
|
+
})),
|
|
108
165
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
109
166
|
export const listAccounts = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
110
167
|
input: ListAccountsRequest,
|
|
@@ -122,24 +179,44 @@ export const CreateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
122
179
|
name: Schema.String,
|
|
123
180
|
type: Schema.optional(Schema.Literals(["standard", "enterprise"])),
|
|
124
181
|
unit: Schema.optional(Schema.Struct({
|
|
125
|
-
id: Schema.optional(Schema.String)
|
|
126
|
-
}))
|
|
127
|
-
})
|
|
128
|
-
.pipe(T.Http({ method: "POST", path: "/accounts" }));
|
|
182
|
+
id: Schema.optional(Schema.String),
|
|
183
|
+
})),
|
|
184
|
+
}).pipe(T.Http({ method: "POST", path: "/accounts" }));
|
|
129
185
|
export const CreateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
130
186
|
id: Schema.String,
|
|
131
187
|
name: Schema.String,
|
|
132
188
|
type: Schema.Literals(["standard", "enterprise"]),
|
|
133
189
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
134
|
-
managedBy: Schema.optional(Schema.Union([
|
|
190
|
+
managedBy: Schema.optional(Schema.Union([
|
|
191
|
+
Schema.Struct({
|
|
135
192
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
136
|
-
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
137
|
-
}).pipe(Schema.encodeKeys({
|
|
138
|
-
|
|
193
|
+
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
194
|
+
}).pipe(Schema.encodeKeys({
|
|
195
|
+
parentOrgId: "parent_org_id",
|
|
196
|
+
parentOrgName: "parent_org_name",
|
|
197
|
+
})),
|
|
198
|
+
Schema.Null,
|
|
199
|
+
])),
|
|
200
|
+
settings: Schema.optional(Schema.Union([
|
|
201
|
+
Schema.Struct({
|
|
139
202
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
140
|
-
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
141
|
-
}).pipe(Schema.encodeKeys({
|
|
142
|
-
|
|
203
|
+
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
204
|
+
}).pipe(Schema.encodeKeys({
|
|
205
|
+
abuseContactEmail: "abuse_contact_email",
|
|
206
|
+
enforceTwofactor: "enforce_twofactor",
|
|
207
|
+
})),
|
|
208
|
+
Schema.Null,
|
|
209
|
+
])),
|
|
210
|
+
})
|
|
211
|
+
.pipe(Schema.encodeKeys({
|
|
212
|
+
id: "id",
|
|
213
|
+
name: "name",
|
|
214
|
+
type: "type",
|
|
215
|
+
createdOn: "created_on",
|
|
216
|
+
managedBy: "managed_by",
|
|
217
|
+
settings: "settings",
|
|
218
|
+
}))
|
|
219
|
+
.pipe(T.ResponsePath("result"));
|
|
143
220
|
export const createAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
144
221
|
input: CreateAccountRequest,
|
|
145
222
|
output: CreateAccountResponse,
|
|
@@ -153,35 +230,69 @@ export const UpdateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
153
230
|
managedBy: Schema.optional(Schema.Unknown),
|
|
154
231
|
settings: Schema.optional(Schema.Struct({
|
|
155
232
|
abuseContactEmail: Schema.optional(Schema.String),
|
|
156
|
-
enforceTwofactor: Schema.optional(Schema.Boolean)
|
|
157
|
-
}).pipe(Schema.encodeKeys({
|
|
158
|
-
|
|
159
|
-
|
|
233
|
+
enforceTwofactor: Schema.optional(Schema.Boolean),
|
|
234
|
+
}).pipe(Schema.encodeKeys({
|
|
235
|
+
abuseContactEmail: "abuse_contact_email",
|
|
236
|
+
enforceTwofactor: "enforce_twofactor",
|
|
237
|
+
}))),
|
|
238
|
+
}).pipe(Schema.encodeKeys({
|
|
239
|
+
id: "id",
|
|
240
|
+
name: "name",
|
|
241
|
+
type: "type",
|
|
242
|
+
managedBy: "managed_by",
|
|
243
|
+
settings: "settings",
|
|
244
|
+
}), T.Http({ method: "PUT", path: "/accounts/{account_id}" }));
|
|
160
245
|
export const UpdateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
161
246
|
id: Schema.String,
|
|
162
247
|
name: Schema.String,
|
|
163
248
|
type: Schema.Literals(["standard", "enterprise"]),
|
|
164
249
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
165
|
-
managedBy: Schema.optional(Schema.Union([
|
|
250
|
+
managedBy: Schema.optional(Schema.Union([
|
|
251
|
+
Schema.Struct({
|
|
166
252
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
167
|
-
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
168
|
-
}).pipe(Schema.encodeKeys({
|
|
169
|
-
|
|
253
|
+
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
254
|
+
}).pipe(Schema.encodeKeys({
|
|
255
|
+
parentOrgId: "parent_org_id",
|
|
256
|
+
parentOrgName: "parent_org_name",
|
|
257
|
+
})),
|
|
258
|
+
Schema.Null,
|
|
259
|
+
])),
|
|
260
|
+
settings: Schema.optional(Schema.Union([
|
|
261
|
+
Schema.Struct({
|
|
170
262
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
171
|
-
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
172
|
-
}).pipe(Schema.encodeKeys({
|
|
173
|
-
|
|
263
|
+
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
264
|
+
}).pipe(Schema.encodeKeys({
|
|
265
|
+
abuseContactEmail: "abuse_contact_email",
|
|
266
|
+
enforceTwofactor: "enforce_twofactor",
|
|
267
|
+
})),
|
|
268
|
+
Schema.Null,
|
|
269
|
+
])),
|
|
270
|
+
})
|
|
271
|
+
.pipe(Schema.encodeKeys({
|
|
272
|
+
id: "id",
|
|
273
|
+
name: "name",
|
|
274
|
+
type: "type",
|
|
275
|
+
createdOn: "created_on",
|
|
276
|
+
managedBy: "managed_by",
|
|
277
|
+
settings: "settings",
|
|
278
|
+
}))
|
|
279
|
+
.pipe(T.ResponsePath("result"));
|
|
174
280
|
export const updateAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
175
281
|
input: UpdateAccountRequest,
|
|
176
282
|
output: UpdateAccountResponse,
|
|
177
|
-
errors: [
|
|
283
|
+
errors: [
|
|
284
|
+
InvalidAccountName,
|
|
285
|
+
AccountNameTooLong,
|
|
286
|
+
UpdateAccountTypeNotSupported,
|
|
287
|
+
InvalidRoute,
|
|
288
|
+
MethodNotAllowed,
|
|
289
|
+
],
|
|
178
290
|
}));
|
|
179
291
|
export const DeleteAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
180
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
181
|
-
})
|
|
182
|
-
.pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" }));
|
|
292
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
293
|
+
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" }));
|
|
183
294
|
export const DeleteAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
184
|
-
id: Schema.String
|
|
295
|
+
id: Schema.String,
|
|
185
296
|
}).pipe(T.ResponsePath("result"));
|
|
186
297
|
export const deleteAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
187
298
|
input: DeleteAccountRequest,
|
|
@@ -193,122 +304,179 @@ export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
193
304
|
before: Schema.String.pipe(T.HttpQuery("before")),
|
|
194
305
|
since: Schema.String.pipe(T.HttpQuery("since")),
|
|
195
306
|
id: Schema.optional(Schema.Struct({
|
|
196
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
307
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
197
308
|
})).pipe(T.HttpQuery("id")),
|
|
198
309
|
accountName: Schema.optional(Schema.Struct({
|
|
199
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
310
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
200
311
|
})).pipe(T.HttpQuery("account_name")),
|
|
201
312
|
actionResult: Schema.optional(Schema.Struct({
|
|
202
|
-
not: Schema.optional(Schema.Array(Schema.Literals(["success", "failure"])))
|
|
313
|
+
not: Schema.optional(Schema.Array(Schema.Literals(["success", "failure"]))),
|
|
203
314
|
})).pipe(T.HttpQuery("action_result")),
|
|
204
315
|
actionType: Schema.optional(Schema.Struct({
|
|
205
|
-
not: Schema.optional(Schema.Array(Schema.Literals(["create", "delete", "view", "update"])))
|
|
316
|
+
not: Schema.optional(Schema.Array(Schema.Literals(["create", "delete", "view", "update"]))),
|
|
206
317
|
})).pipe(T.HttpQuery("action_type")),
|
|
207
318
|
actorContext: Schema.optional(Schema.Struct({
|
|
208
|
-
not: Schema.optional(Schema.Array(Schema.Literals([
|
|
319
|
+
not: Schema.optional(Schema.Array(Schema.Literals([
|
|
320
|
+
"api_key",
|
|
321
|
+
"api_token",
|
|
322
|
+
"dash",
|
|
323
|
+
"oauth",
|
|
324
|
+
"origin_ca_key",
|
|
325
|
+
]))),
|
|
209
326
|
})).pipe(T.HttpQuery("actor_context")),
|
|
210
327
|
actorEmail: Schema.optional(Schema.Struct({
|
|
211
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
328
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
212
329
|
})).pipe(T.HttpQuery("actor_email")),
|
|
213
330
|
actorId: Schema.optional(Schema.Struct({
|
|
214
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
331
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
215
332
|
})).pipe(T.HttpQuery("actor_id")),
|
|
216
333
|
actorIpAddress: Schema.optional(Schema.Struct({
|
|
217
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
334
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
218
335
|
})).pipe(T.HttpQuery("actor_ip_address")),
|
|
219
336
|
actorTokenId: Schema.optional(Schema.Struct({
|
|
220
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
337
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
221
338
|
})).pipe(T.HttpQuery("actor_token_id")),
|
|
222
339
|
actorTokenName: Schema.optional(Schema.Struct({
|
|
223
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
340
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
224
341
|
})).pipe(T.HttpQuery("actor_token_name")),
|
|
225
342
|
actorType: Schema.optional(Schema.Struct({
|
|
226
|
-
not: Schema.optional(Schema.Array(Schema.Literals(["account", "cloudflare_admin", "system", "user"])))
|
|
343
|
+
not: Schema.optional(Schema.Array(Schema.Literals(["account", "cloudflare_admin", "system", "user"]))),
|
|
227
344
|
})).pipe(T.HttpQuery("actor_type")),
|
|
228
345
|
auditLogId: Schema.optional(Schema.Struct({
|
|
229
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
346
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
230
347
|
})).pipe(T.HttpQuery("audit_log_id")),
|
|
231
348
|
direction: Schema.optional(Schema.Literals(["desc", "asc"])).pipe(T.HttpQuery("direction")),
|
|
232
349
|
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
233
350
|
rawCfRayId: Schema.optional(Schema.Struct({
|
|
234
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
351
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
235
352
|
})).pipe(T.HttpQuery("raw_cf_ray_id")),
|
|
236
353
|
rawMethod: Schema.optional(Schema.Struct({
|
|
237
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
354
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
238
355
|
})).pipe(T.HttpQuery("raw_method")),
|
|
239
356
|
rawStatusCode: Schema.optional(Schema.Struct({
|
|
240
|
-
not: Schema.optional(Schema.Array(Schema.Number))
|
|
357
|
+
not: Schema.optional(Schema.Array(Schema.Number)),
|
|
241
358
|
})).pipe(T.HttpQuery("raw_status_code")),
|
|
242
359
|
rawUri: Schema.optional(Schema.Struct({
|
|
243
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
360
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
244
361
|
})).pipe(T.HttpQuery("raw_uri")),
|
|
245
362
|
resourceId: Schema.optional(Schema.Struct({
|
|
246
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
363
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
247
364
|
})).pipe(T.HttpQuery("resource_id")),
|
|
248
365
|
resourceProduct: Schema.optional(Schema.Struct({
|
|
249
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
366
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
250
367
|
})).pipe(T.HttpQuery("resource_product")),
|
|
251
368
|
resourceScope: Schema.optional(Schema.Struct({
|
|
252
|
-
not: Schema.optional(Schema.Array(Schema.Literals(["accounts", "user", "zones"])))
|
|
369
|
+
not: Schema.optional(Schema.Array(Schema.Literals(["accounts", "user", "zones"]))),
|
|
253
370
|
})).pipe(T.HttpQuery("resource_scope")),
|
|
254
371
|
resourceType: Schema.optional(Schema.Struct({
|
|
255
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
372
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
256
373
|
})).pipe(T.HttpQuery("resource_type")),
|
|
257
374
|
zoneId: Schema.optional(Schema.Struct({
|
|
258
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
375
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
259
376
|
})).pipe(T.HttpQuery("zone_id")),
|
|
260
377
|
zoneName: Schema.optional(Schema.Struct({
|
|
261
|
-
not: Schema.optional(Schema.Array(Schema.String))
|
|
262
|
-
})).pipe(T.HttpQuery("zone_name"))
|
|
263
|
-
})
|
|
264
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" }));
|
|
378
|
+
not: Schema.optional(Schema.Array(Schema.String)),
|
|
379
|
+
})).pipe(T.HttpQuery("zone_name")),
|
|
380
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" }));
|
|
265
381
|
export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
266
382
|
result: Schema.Array(Schema.Struct({
|
|
267
383
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
268
|
-
account: Schema.optional(Schema.Union([
|
|
384
|
+
account: Schema.optional(Schema.Union([
|
|
385
|
+
Schema.Struct({
|
|
269
386
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
270
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
271
|
-
}),
|
|
272
|
-
|
|
387
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
388
|
+
}),
|
|
389
|
+
Schema.Null,
|
|
390
|
+
])),
|
|
391
|
+
action: Schema.optional(Schema.Union([
|
|
392
|
+
Schema.Struct({
|
|
273
393
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
274
394
|
result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
275
395
|
time: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
276
|
-
type: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
277
|
-
}),
|
|
278
|
-
|
|
396
|
+
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
397
|
+
}),
|
|
398
|
+
Schema.Null,
|
|
399
|
+
])),
|
|
400
|
+
actor: Schema.optional(Schema.Union([
|
|
401
|
+
Schema.Struct({
|
|
279
402
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
280
|
-
context: Schema.optional(Schema.Union([
|
|
403
|
+
context: Schema.optional(Schema.Union([
|
|
404
|
+
Schema.Literals([
|
|
405
|
+
"api_key",
|
|
406
|
+
"api_token",
|
|
407
|
+
"dash",
|
|
408
|
+
"oauth",
|
|
409
|
+
"origin_ca_key",
|
|
410
|
+
]),
|
|
411
|
+
Schema.Null,
|
|
412
|
+
])),
|
|
281
413
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
282
414
|
ipAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
283
415
|
tokenId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
284
416
|
tokenName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
285
|
-
type: Schema.optional(Schema.Union([
|
|
286
|
-
|
|
287
|
-
|
|
417
|
+
type: Schema.optional(Schema.Union([
|
|
418
|
+
Schema.Literals([
|
|
419
|
+
"account",
|
|
420
|
+
"cloudflare_admin",
|
|
421
|
+
"system",
|
|
422
|
+
"user",
|
|
423
|
+
]),
|
|
424
|
+
Schema.Null,
|
|
425
|
+
])),
|
|
426
|
+
}).pipe(Schema.encodeKeys({
|
|
427
|
+
id: "id",
|
|
428
|
+
context: "context",
|
|
429
|
+
email: "email",
|
|
430
|
+
ipAddress: "ip_address",
|
|
431
|
+
tokenId: "token_id",
|
|
432
|
+
tokenName: "token_name",
|
|
433
|
+
type: "type",
|
|
434
|
+
})),
|
|
435
|
+
Schema.Null,
|
|
436
|
+
])),
|
|
437
|
+
raw: Schema.optional(Schema.Union([
|
|
438
|
+
Schema.Struct({
|
|
288
439
|
cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
289
440
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
290
441
|
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
291
442
|
uri: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
292
|
-
userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
293
|
-
}).pipe(Schema.encodeKeys({
|
|
294
|
-
|
|
443
|
+
userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
444
|
+
}).pipe(Schema.encodeKeys({
|
|
445
|
+
cfRayId: "cf_ray_id",
|
|
446
|
+
method: "method",
|
|
447
|
+
statusCode: "status_code",
|
|
448
|
+
uri: "uri",
|
|
449
|
+
userAgent: "user_agent",
|
|
450
|
+
})),
|
|
451
|
+
Schema.Null,
|
|
452
|
+
])),
|
|
453
|
+
resource: Schema.optional(Schema.Union([
|
|
454
|
+
Schema.Struct({
|
|
295
455
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
296
456
|
product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
297
457
|
request: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
298
458
|
response: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
299
459
|
scope: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
300
|
-
type: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
301
|
-
}),
|
|
302
|
-
|
|
460
|
+
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
461
|
+
}),
|
|
462
|
+
Schema.Null,
|
|
463
|
+
])),
|
|
464
|
+
zone: Schema.optional(Schema.Union([
|
|
465
|
+
Schema.Struct({
|
|
303
466
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
304
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
305
|
-
}),
|
|
467
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
468
|
+
}),
|
|
469
|
+
Schema.Null,
|
|
470
|
+
])),
|
|
306
471
|
})),
|
|
307
472
|
resultInfo: Schema.Struct({
|
|
308
|
-
cursors: Schema.optional(Schema.Union([
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
473
|
+
cursors: Schema.optional(Schema.Union([
|
|
474
|
+
Schema.Struct({
|
|
475
|
+
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
476
|
+
}),
|
|
477
|
+
Schema.Null,
|
|
478
|
+
])),
|
|
479
|
+
}),
|
|
312
480
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
313
481
|
export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
314
482
|
input: ListLogAuditsRequest,
|
|
@@ -323,85 +491,159 @@ export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
323
491
|
}));
|
|
324
492
|
export const GetMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
325
493
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
326
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
327
|
-
})
|
|
328
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members/{memberId}" }));
|
|
494
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
495
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members/{memberId}" }));
|
|
329
496
|
export const GetMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
330
497
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
331
498
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
332
|
-
policies: Schema.optional(Schema.Union([
|
|
499
|
+
policies: Schema.optional(Schema.Union([
|
|
500
|
+
Schema.Array(Schema.Struct({
|
|
333
501
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
334
502
|
access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
|
|
335
|
-
permissionGroups: Schema.optional(Schema.Union([
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
503
|
+
permissionGroups: Schema.optional(Schema.Union([
|
|
504
|
+
Schema.Array(Schema.Struct({
|
|
505
|
+
id: Schema.String,
|
|
506
|
+
})),
|
|
507
|
+
Schema.Null,
|
|
508
|
+
])),
|
|
509
|
+
resourceGroups: Schema.optional(Schema.Union([
|
|
510
|
+
Schema.Array(Schema.Struct({
|
|
511
|
+
id: Schema.String,
|
|
512
|
+
})),
|
|
513
|
+
Schema.Null,
|
|
514
|
+
])),
|
|
515
|
+
}).pipe(Schema.encodeKeys({
|
|
516
|
+
id: "id",
|
|
517
|
+
access: "access",
|
|
518
|
+
permissionGroups: "permission_groups",
|
|
519
|
+
resourceGroups: "resource_groups",
|
|
520
|
+
}))),
|
|
521
|
+
Schema.Null,
|
|
522
|
+
])),
|
|
523
|
+
roles: Schema.optional(Schema.Union([
|
|
524
|
+
Schema.Array(Schema.Struct({
|
|
343
525
|
id: Schema.String,
|
|
344
526
|
description: Schema.String,
|
|
345
527
|
name: Schema.String,
|
|
346
528
|
permissions: Schema.Struct({
|
|
347
|
-
analytics: Schema.optional(Schema.Union([
|
|
529
|
+
analytics: Schema.optional(Schema.Union([
|
|
530
|
+
Schema.Struct({
|
|
348
531
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
349
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
350
|
-
}),
|
|
351
|
-
|
|
532
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
533
|
+
}),
|
|
534
|
+
Schema.Null,
|
|
535
|
+
])),
|
|
536
|
+
billing: Schema.optional(Schema.Union([
|
|
537
|
+
Schema.Struct({
|
|
352
538
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
353
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
354
|
-
}),
|
|
355
|
-
|
|
539
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
540
|
+
}),
|
|
541
|
+
Schema.Null,
|
|
542
|
+
])),
|
|
543
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
544
|
+
Schema.Struct({
|
|
356
545
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
357
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
358
|
-
}),
|
|
359
|
-
|
|
546
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
547
|
+
}),
|
|
548
|
+
Schema.Null,
|
|
549
|
+
])),
|
|
550
|
+
dns: Schema.optional(Schema.Union([
|
|
551
|
+
Schema.Struct({
|
|
360
552
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
361
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
362
|
-
}),
|
|
363
|
-
|
|
553
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
554
|
+
}),
|
|
555
|
+
Schema.Null,
|
|
556
|
+
])),
|
|
557
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
558
|
+
Schema.Struct({
|
|
364
559
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
365
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
366
|
-
}),
|
|
367
|
-
|
|
560
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
561
|
+
}),
|
|
562
|
+
Schema.Null,
|
|
563
|
+
])),
|
|
564
|
+
lb: Schema.optional(Schema.Union([
|
|
565
|
+
Schema.Struct({
|
|
368
566
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
369
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
370
|
-
}),
|
|
371
|
-
|
|
567
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
568
|
+
}),
|
|
569
|
+
Schema.Null,
|
|
570
|
+
])),
|
|
571
|
+
logs: Schema.optional(Schema.Union([
|
|
572
|
+
Schema.Struct({
|
|
372
573
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
373
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
374
|
-
}),
|
|
375
|
-
|
|
574
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
575
|
+
}),
|
|
576
|
+
Schema.Null,
|
|
577
|
+
])),
|
|
578
|
+
organization: Schema.optional(Schema.Union([
|
|
579
|
+
Schema.Struct({
|
|
376
580
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
377
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
378
|
-
}),
|
|
379
|
-
|
|
581
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
582
|
+
}),
|
|
583
|
+
Schema.Null,
|
|
584
|
+
])),
|
|
585
|
+
ssl: Schema.optional(Schema.Union([
|
|
586
|
+
Schema.Struct({
|
|
380
587
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
381
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
382
|
-
}),
|
|
383
|
-
|
|
588
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
589
|
+
}),
|
|
590
|
+
Schema.Null,
|
|
591
|
+
])),
|
|
592
|
+
waf: Schema.optional(Schema.Union([
|
|
593
|
+
Schema.Struct({
|
|
384
594
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
385
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
386
|
-
}),
|
|
387
|
-
|
|
595
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
596
|
+
}),
|
|
597
|
+
Schema.Null,
|
|
598
|
+
])),
|
|
599
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
600
|
+
Schema.Struct({
|
|
388
601
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
389
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
390
|
-
}),
|
|
391
|
-
|
|
602
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
603
|
+
}),
|
|
604
|
+
Schema.Null,
|
|
605
|
+
])),
|
|
606
|
+
zones: Schema.optional(Schema.Union([
|
|
607
|
+
Schema.Struct({
|
|
392
608
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
393
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
394
|
-
}),
|
|
395
|
-
|
|
396
|
-
|
|
609
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
610
|
+
}),
|
|
611
|
+
Schema.Null,
|
|
612
|
+
])),
|
|
613
|
+
}).pipe(Schema.encodeKeys({
|
|
614
|
+
analytics: "analytics",
|
|
615
|
+
billing: "billing",
|
|
616
|
+
cachePurge: "cache_purge",
|
|
617
|
+
dns: "dns",
|
|
618
|
+
dnsRecords: "dns_records",
|
|
619
|
+
lb: "lb",
|
|
620
|
+
logs: "logs",
|
|
621
|
+
organization: "organization",
|
|
622
|
+
ssl: "ssl",
|
|
623
|
+
waf: "waf",
|
|
624
|
+
zoneSettings: "zone_settings",
|
|
625
|
+
zones: "zones",
|
|
626
|
+
})),
|
|
627
|
+
})),
|
|
628
|
+
Schema.Null,
|
|
629
|
+
])),
|
|
397
630
|
status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null])),
|
|
398
|
-
user: Schema.optional(Schema.Union([
|
|
631
|
+
user: Schema.optional(Schema.Union([
|
|
632
|
+
Schema.Struct({
|
|
399
633
|
email: Schema.String,
|
|
400
634
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
401
635
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
402
636
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
403
|
-
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
404
|
-
}).pipe(Schema.encodeKeys({
|
|
637
|
+
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
638
|
+
}).pipe(Schema.encodeKeys({
|
|
639
|
+
email: "email",
|
|
640
|
+
id: "id",
|
|
641
|
+
firstName: "first_name",
|
|
642
|
+
lastName: "last_name",
|
|
643
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
644
|
+
})),
|
|
645
|
+
Schema.Null,
|
|
646
|
+
])),
|
|
405
647
|
}).pipe(T.ResponsePath("result"));
|
|
406
648
|
export const getMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
407
649
|
input: GetMemberRequest,
|
|
@@ -411,94 +653,178 @@ export const getMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
411
653
|
export const ListMembersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
412
654
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
413
655
|
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
414
|
-
order: Schema.optional(Schema.Literals([
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
656
|
+
order: Schema.optional(Schema.Literals([
|
|
657
|
+
"user.first_name",
|
|
658
|
+
"user.last_name",
|
|
659
|
+
"user.email",
|
|
660
|
+
"status",
|
|
661
|
+
])).pipe(T.HttpQuery("order")),
|
|
662
|
+
status: Schema.optional(Schema.Literals(["accepted", "pending", "rejected"])).pipe(T.HttpQuery("status")),
|
|
663
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" }));
|
|
418
664
|
export const ListMembersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
419
665
|
result: Schema.Array(Schema.Struct({
|
|
420
666
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
421
667
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
422
|
-
policies: Schema.optional(Schema.Union([
|
|
668
|
+
policies: Schema.optional(Schema.Union([
|
|
669
|
+
Schema.Array(Schema.Struct({
|
|
423
670
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
424
671
|
access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
|
|
425
|
-
permissionGroups: Schema.optional(Schema.Union([
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
672
|
+
permissionGroups: Schema.optional(Schema.Union([
|
|
673
|
+
Schema.Array(Schema.Struct({
|
|
674
|
+
id: Schema.String,
|
|
675
|
+
})),
|
|
676
|
+
Schema.Null,
|
|
677
|
+
])),
|
|
678
|
+
resourceGroups: Schema.optional(Schema.Union([
|
|
679
|
+
Schema.Array(Schema.Struct({
|
|
680
|
+
id: Schema.String,
|
|
681
|
+
})),
|
|
682
|
+
Schema.Null,
|
|
683
|
+
])),
|
|
684
|
+
}).pipe(Schema.encodeKeys({
|
|
685
|
+
id: "id",
|
|
686
|
+
access: "access",
|
|
687
|
+
permissionGroups: "permission_groups",
|
|
688
|
+
resourceGroups: "resource_groups",
|
|
689
|
+
}))),
|
|
690
|
+
Schema.Null,
|
|
691
|
+
])),
|
|
692
|
+
roles: Schema.optional(Schema.Union([
|
|
693
|
+
Schema.Array(Schema.Struct({
|
|
433
694
|
id: Schema.String,
|
|
434
695
|
description: Schema.String,
|
|
435
696
|
name: Schema.String,
|
|
436
697
|
permissions: Schema.Struct({
|
|
437
|
-
analytics: Schema.optional(Schema.Union([
|
|
698
|
+
analytics: Schema.optional(Schema.Union([
|
|
699
|
+
Schema.Struct({
|
|
438
700
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
439
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
440
|
-
}),
|
|
441
|
-
|
|
701
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
702
|
+
}),
|
|
703
|
+
Schema.Null,
|
|
704
|
+
])),
|
|
705
|
+
billing: Schema.optional(Schema.Union([
|
|
706
|
+
Schema.Struct({
|
|
442
707
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
443
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
444
|
-
}),
|
|
445
|
-
|
|
708
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
709
|
+
}),
|
|
710
|
+
Schema.Null,
|
|
711
|
+
])),
|
|
712
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
713
|
+
Schema.Struct({
|
|
446
714
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
447
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
448
|
-
}),
|
|
449
|
-
|
|
715
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
716
|
+
}),
|
|
717
|
+
Schema.Null,
|
|
718
|
+
])),
|
|
719
|
+
dns: Schema.optional(Schema.Union([
|
|
720
|
+
Schema.Struct({
|
|
450
721
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
451
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
452
|
-
}),
|
|
453
|
-
|
|
722
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
723
|
+
}),
|
|
724
|
+
Schema.Null,
|
|
725
|
+
])),
|
|
726
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
727
|
+
Schema.Struct({
|
|
454
728
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
455
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
456
|
-
}),
|
|
457
|
-
|
|
729
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
730
|
+
}),
|
|
731
|
+
Schema.Null,
|
|
732
|
+
])),
|
|
733
|
+
lb: Schema.optional(Schema.Union([
|
|
734
|
+
Schema.Struct({
|
|
458
735
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
459
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
460
|
-
}),
|
|
461
|
-
|
|
736
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
737
|
+
}),
|
|
738
|
+
Schema.Null,
|
|
739
|
+
])),
|
|
740
|
+
logs: Schema.optional(Schema.Union([
|
|
741
|
+
Schema.Struct({
|
|
462
742
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
463
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
464
|
-
}),
|
|
465
|
-
|
|
743
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
744
|
+
}),
|
|
745
|
+
Schema.Null,
|
|
746
|
+
])),
|
|
747
|
+
organization: Schema.optional(Schema.Union([
|
|
748
|
+
Schema.Struct({
|
|
466
749
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
467
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
468
|
-
}),
|
|
469
|
-
|
|
750
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
751
|
+
}),
|
|
752
|
+
Schema.Null,
|
|
753
|
+
])),
|
|
754
|
+
ssl: Schema.optional(Schema.Union([
|
|
755
|
+
Schema.Struct({
|
|
470
756
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
471
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
472
|
-
}),
|
|
473
|
-
|
|
757
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
758
|
+
}),
|
|
759
|
+
Schema.Null,
|
|
760
|
+
])),
|
|
761
|
+
waf: Schema.optional(Schema.Union([
|
|
762
|
+
Schema.Struct({
|
|
474
763
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
475
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
476
|
-
}),
|
|
477
|
-
|
|
764
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
765
|
+
}),
|
|
766
|
+
Schema.Null,
|
|
767
|
+
])),
|
|
768
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
769
|
+
Schema.Struct({
|
|
478
770
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
479
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
480
|
-
}),
|
|
481
|
-
|
|
771
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
772
|
+
}),
|
|
773
|
+
Schema.Null,
|
|
774
|
+
])),
|
|
775
|
+
zones: Schema.optional(Schema.Union([
|
|
776
|
+
Schema.Struct({
|
|
482
777
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
483
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
484
|
-
}),
|
|
485
|
-
|
|
486
|
-
|
|
778
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
779
|
+
}),
|
|
780
|
+
Schema.Null,
|
|
781
|
+
])),
|
|
782
|
+
}).pipe(Schema.encodeKeys({
|
|
783
|
+
analytics: "analytics",
|
|
784
|
+
billing: "billing",
|
|
785
|
+
cachePurge: "cache_purge",
|
|
786
|
+
dns: "dns",
|
|
787
|
+
dnsRecords: "dns_records",
|
|
788
|
+
lb: "lb",
|
|
789
|
+
logs: "logs",
|
|
790
|
+
organization: "organization",
|
|
791
|
+
ssl: "ssl",
|
|
792
|
+
waf: "waf",
|
|
793
|
+
zoneSettings: "zone_settings",
|
|
794
|
+
zones: "zones",
|
|
795
|
+
})),
|
|
796
|
+
})),
|
|
797
|
+
Schema.Null,
|
|
798
|
+
])),
|
|
487
799
|
status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null])),
|
|
488
|
-
user: Schema.optional(Schema.Union([
|
|
800
|
+
user: Schema.optional(Schema.Union([
|
|
801
|
+
Schema.Struct({
|
|
489
802
|
email: Schema.String,
|
|
490
803
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
491
804
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
492
805
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
493
|
-
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
494
|
-
}).pipe(Schema.encodeKeys({
|
|
806
|
+
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
807
|
+
}).pipe(Schema.encodeKeys({
|
|
808
|
+
email: "email",
|
|
809
|
+
id: "id",
|
|
810
|
+
firstName: "first_name",
|
|
811
|
+
lastName: "last_name",
|
|
812
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
813
|
+
})),
|
|
814
|
+
Schema.Null,
|
|
815
|
+
])),
|
|
495
816
|
})),
|
|
496
817
|
resultInfo: Schema.Struct({
|
|
497
818
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
498
819
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
499
820
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
500
|
-
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
|
|
501
|
-
}).pipe(Schema.encodeKeys({
|
|
821
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
822
|
+
}).pipe(Schema.encodeKeys({
|
|
823
|
+
count: "count",
|
|
824
|
+
page: "page",
|
|
825
|
+
perPage: "per_page",
|
|
826
|
+
totalCount: "total_count",
|
|
827
|
+
})),
|
|
502
828
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
503
829
|
export const listMembers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
504
830
|
input: ListMembersRequest,
|
|
@@ -516,85 +842,159 @@ export const CreateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
516
842
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
517
843
|
email: Schema.String,
|
|
518
844
|
roles: Schema.Array(Schema.String),
|
|
519
|
-
status: Schema.optional(Schema.Literals(["accepted", "pending"]))
|
|
520
|
-
})
|
|
521
|
-
.pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" }));
|
|
845
|
+
status: Schema.optional(Schema.Literals(["accepted", "pending"])),
|
|
846
|
+
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" }));
|
|
522
847
|
export const CreateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
523
848
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
524
849
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
525
|
-
policies: Schema.optional(Schema.Union([
|
|
850
|
+
policies: Schema.optional(Schema.Union([
|
|
851
|
+
Schema.Array(Schema.Struct({
|
|
526
852
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
527
853
|
access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
|
|
528
|
-
permissionGroups: Schema.optional(Schema.Union([
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
854
|
+
permissionGroups: Schema.optional(Schema.Union([
|
|
855
|
+
Schema.Array(Schema.Struct({
|
|
856
|
+
id: Schema.String,
|
|
857
|
+
})),
|
|
858
|
+
Schema.Null,
|
|
859
|
+
])),
|
|
860
|
+
resourceGroups: Schema.optional(Schema.Union([
|
|
861
|
+
Schema.Array(Schema.Struct({
|
|
862
|
+
id: Schema.String,
|
|
863
|
+
})),
|
|
864
|
+
Schema.Null,
|
|
865
|
+
])),
|
|
866
|
+
}).pipe(Schema.encodeKeys({
|
|
867
|
+
id: "id",
|
|
868
|
+
access: "access",
|
|
869
|
+
permissionGroups: "permission_groups",
|
|
870
|
+
resourceGroups: "resource_groups",
|
|
871
|
+
}))),
|
|
872
|
+
Schema.Null,
|
|
873
|
+
])),
|
|
874
|
+
roles: Schema.optional(Schema.Union([
|
|
875
|
+
Schema.Array(Schema.Struct({
|
|
536
876
|
id: Schema.String,
|
|
537
877
|
description: Schema.String,
|
|
538
878
|
name: Schema.String,
|
|
539
879
|
permissions: Schema.Struct({
|
|
540
|
-
analytics: Schema.optional(Schema.Union([
|
|
880
|
+
analytics: Schema.optional(Schema.Union([
|
|
881
|
+
Schema.Struct({
|
|
541
882
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
542
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
543
|
-
}),
|
|
544
|
-
|
|
883
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
884
|
+
}),
|
|
885
|
+
Schema.Null,
|
|
886
|
+
])),
|
|
887
|
+
billing: Schema.optional(Schema.Union([
|
|
888
|
+
Schema.Struct({
|
|
545
889
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
546
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
547
|
-
}),
|
|
548
|
-
|
|
890
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
891
|
+
}),
|
|
892
|
+
Schema.Null,
|
|
893
|
+
])),
|
|
894
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
895
|
+
Schema.Struct({
|
|
549
896
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
550
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
551
|
-
}),
|
|
552
|
-
|
|
897
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
898
|
+
}),
|
|
899
|
+
Schema.Null,
|
|
900
|
+
])),
|
|
901
|
+
dns: Schema.optional(Schema.Union([
|
|
902
|
+
Schema.Struct({
|
|
553
903
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
554
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
555
|
-
}),
|
|
556
|
-
|
|
904
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
905
|
+
}),
|
|
906
|
+
Schema.Null,
|
|
907
|
+
])),
|
|
908
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
909
|
+
Schema.Struct({
|
|
557
910
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
558
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
559
|
-
}),
|
|
560
|
-
|
|
911
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
912
|
+
}),
|
|
913
|
+
Schema.Null,
|
|
914
|
+
])),
|
|
915
|
+
lb: Schema.optional(Schema.Union([
|
|
916
|
+
Schema.Struct({
|
|
561
917
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
562
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
563
|
-
}),
|
|
564
|
-
|
|
918
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
919
|
+
}),
|
|
920
|
+
Schema.Null,
|
|
921
|
+
])),
|
|
922
|
+
logs: Schema.optional(Schema.Union([
|
|
923
|
+
Schema.Struct({
|
|
565
924
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
566
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
567
|
-
}),
|
|
568
|
-
|
|
925
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
926
|
+
}),
|
|
927
|
+
Schema.Null,
|
|
928
|
+
])),
|
|
929
|
+
organization: Schema.optional(Schema.Union([
|
|
930
|
+
Schema.Struct({
|
|
569
931
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
570
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
571
|
-
}),
|
|
572
|
-
|
|
932
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
933
|
+
}),
|
|
934
|
+
Schema.Null,
|
|
935
|
+
])),
|
|
936
|
+
ssl: Schema.optional(Schema.Union([
|
|
937
|
+
Schema.Struct({
|
|
573
938
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
574
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
575
|
-
}),
|
|
576
|
-
|
|
939
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
940
|
+
}),
|
|
941
|
+
Schema.Null,
|
|
942
|
+
])),
|
|
943
|
+
waf: Schema.optional(Schema.Union([
|
|
944
|
+
Schema.Struct({
|
|
577
945
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
578
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
579
|
-
}),
|
|
580
|
-
|
|
946
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
947
|
+
}),
|
|
948
|
+
Schema.Null,
|
|
949
|
+
])),
|
|
950
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
951
|
+
Schema.Struct({
|
|
581
952
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
582
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
583
|
-
}),
|
|
584
|
-
|
|
953
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
954
|
+
}),
|
|
955
|
+
Schema.Null,
|
|
956
|
+
])),
|
|
957
|
+
zones: Schema.optional(Schema.Union([
|
|
958
|
+
Schema.Struct({
|
|
585
959
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
586
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
587
|
-
}),
|
|
588
|
-
|
|
589
|
-
|
|
960
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
961
|
+
}),
|
|
962
|
+
Schema.Null,
|
|
963
|
+
])),
|
|
964
|
+
}).pipe(Schema.encodeKeys({
|
|
965
|
+
analytics: "analytics",
|
|
966
|
+
billing: "billing",
|
|
967
|
+
cachePurge: "cache_purge",
|
|
968
|
+
dns: "dns",
|
|
969
|
+
dnsRecords: "dns_records",
|
|
970
|
+
lb: "lb",
|
|
971
|
+
logs: "logs",
|
|
972
|
+
organization: "organization",
|
|
973
|
+
ssl: "ssl",
|
|
974
|
+
waf: "waf",
|
|
975
|
+
zoneSettings: "zone_settings",
|
|
976
|
+
zones: "zones",
|
|
977
|
+
})),
|
|
978
|
+
})),
|
|
979
|
+
Schema.Null,
|
|
980
|
+
])),
|
|
590
981
|
status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null])),
|
|
591
|
-
user: Schema.optional(Schema.Union([
|
|
982
|
+
user: Schema.optional(Schema.Union([
|
|
983
|
+
Schema.Struct({
|
|
592
984
|
email: Schema.String,
|
|
593
985
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
594
986
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
595
987
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
596
|
-
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
597
|
-
}).pipe(Schema.encodeKeys({
|
|
988
|
+
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
989
|
+
}).pipe(Schema.encodeKeys({
|
|
990
|
+
email: "email",
|
|
991
|
+
id: "id",
|
|
992
|
+
firstName: "first_name",
|
|
993
|
+
lastName: "last_name",
|
|
994
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
995
|
+
})),
|
|
996
|
+
Schema.Null,
|
|
997
|
+
])),
|
|
598
998
|
}).pipe(T.ResponsePath("result"));
|
|
599
999
|
export const createMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
600
1000
|
input: CreateMemberRequest,
|
|
@@ -605,86 +1005,160 @@ export const UpdateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
605
1005
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
606
1006
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
607
1007
|
roles: Schema.optional(Schema.Array(Schema.Struct({
|
|
608
|
-
id: Schema.String
|
|
609
|
-
})))
|
|
610
|
-
})
|
|
611
|
-
.pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/members/{memberId}" }));
|
|
1008
|
+
id: Schema.String,
|
|
1009
|
+
}))),
|
|
1010
|
+
}).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/members/{memberId}" }));
|
|
612
1011
|
export const UpdateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
613
1012
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
614
1013
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
615
|
-
policies: Schema.optional(Schema.Union([
|
|
1014
|
+
policies: Schema.optional(Schema.Union([
|
|
1015
|
+
Schema.Array(Schema.Struct({
|
|
616
1016
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
617
1017
|
access: Schema.optional(Schema.Union([Schema.Literals(["allow", "deny"]), Schema.Null])),
|
|
618
|
-
permissionGroups: Schema.optional(Schema.Union([
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
1018
|
+
permissionGroups: Schema.optional(Schema.Union([
|
|
1019
|
+
Schema.Array(Schema.Struct({
|
|
1020
|
+
id: Schema.String,
|
|
1021
|
+
})),
|
|
1022
|
+
Schema.Null,
|
|
1023
|
+
])),
|
|
1024
|
+
resourceGroups: Schema.optional(Schema.Union([
|
|
1025
|
+
Schema.Array(Schema.Struct({
|
|
1026
|
+
id: Schema.String,
|
|
1027
|
+
})),
|
|
1028
|
+
Schema.Null,
|
|
1029
|
+
])),
|
|
1030
|
+
}).pipe(Schema.encodeKeys({
|
|
1031
|
+
id: "id",
|
|
1032
|
+
access: "access",
|
|
1033
|
+
permissionGroups: "permission_groups",
|
|
1034
|
+
resourceGroups: "resource_groups",
|
|
1035
|
+
}))),
|
|
1036
|
+
Schema.Null,
|
|
1037
|
+
])),
|
|
1038
|
+
roles: Schema.optional(Schema.Union([
|
|
1039
|
+
Schema.Array(Schema.Struct({
|
|
626
1040
|
id: Schema.String,
|
|
627
1041
|
description: Schema.String,
|
|
628
1042
|
name: Schema.String,
|
|
629
1043
|
permissions: Schema.Struct({
|
|
630
|
-
analytics: Schema.optional(Schema.Union([
|
|
1044
|
+
analytics: Schema.optional(Schema.Union([
|
|
1045
|
+
Schema.Struct({
|
|
631
1046
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
632
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
633
|
-
}),
|
|
634
|
-
|
|
1047
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1048
|
+
}),
|
|
1049
|
+
Schema.Null,
|
|
1050
|
+
])),
|
|
1051
|
+
billing: Schema.optional(Schema.Union([
|
|
1052
|
+
Schema.Struct({
|
|
635
1053
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
636
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
637
|
-
}),
|
|
638
|
-
|
|
1054
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1055
|
+
}),
|
|
1056
|
+
Schema.Null,
|
|
1057
|
+
])),
|
|
1058
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
1059
|
+
Schema.Struct({
|
|
639
1060
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
640
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
641
|
-
}),
|
|
642
|
-
|
|
1061
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1062
|
+
}),
|
|
1063
|
+
Schema.Null,
|
|
1064
|
+
])),
|
|
1065
|
+
dns: Schema.optional(Schema.Union([
|
|
1066
|
+
Schema.Struct({
|
|
643
1067
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
644
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
645
|
-
}),
|
|
646
|
-
|
|
1068
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1069
|
+
}),
|
|
1070
|
+
Schema.Null,
|
|
1071
|
+
])),
|
|
1072
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
1073
|
+
Schema.Struct({
|
|
647
1074
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
648
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
649
|
-
}),
|
|
650
|
-
|
|
1075
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1076
|
+
}),
|
|
1077
|
+
Schema.Null,
|
|
1078
|
+
])),
|
|
1079
|
+
lb: Schema.optional(Schema.Union([
|
|
1080
|
+
Schema.Struct({
|
|
651
1081
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
652
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
653
|
-
}),
|
|
654
|
-
|
|
1082
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1083
|
+
}),
|
|
1084
|
+
Schema.Null,
|
|
1085
|
+
])),
|
|
1086
|
+
logs: Schema.optional(Schema.Union([
|
|
1087
|
+
Schema.Struct({
|
|
655
1088
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
656
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
657
|
-
}),
|
|
658
|
-
|
|
1089
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1090
|
+
}),
|
|
1091
|
+
Schema.Null,
|
|
1092
|
+
])),
|
|
1093
|
+
organization: Schema.optional(Schema.Union([
|
|
1094
|
+
Schema.Struct({
|
|
659
1095
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
660
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
661
|
-
}),
|
|
662
|
-
|
|
1096
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1097
|
+
}),
|
|
1098
|
+
Schema.Null,
|
|
1099
|
+
])),
|
|
1100
|
+
ssl: Schema.optional(Schema.Union([
|
|
1101
|
+
Schema.Struct({
|
|
663
1102
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
664
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
665
|
-
}),
|
|
666
|
-
|
|
1103
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1104
|
+
}),
|
|
1105
|
+
Schema.Null,
|
|
1106
|
+
])),
|
|
1107
|
+
waf: Schema.optional(Schema.Union([
|
|
1108
|
+
Schema.Struct({
|
|
667
1109
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
668
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
669
|
-
}),
|
|
670
|
-
|
|
1110
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1111
|
+
}),
|
|
1112
|
+
Schema.Null,
|
|
1113
|
+
])),
|
|
1114
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
1115
|
+
Schema.Struct({
|
|
671
1116
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
672
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
673
|
-
}),
|
|
674
|
-
|
|
1117
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1118
|
+
}),
|
|
1119
|
+
Schema.Null,
|
|
1120
|
+
])),
|
|
1121
|
+
zones: Schema.optional(Schema.Union([
|
|
1122
|
+
Schema.Struct({
|
|
675
1123
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
676
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
677
|
-
}),
|
|
678
|
-
|
|
679
|
-
|
|
1124
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1125
|
+
}),
|
|
1126
|
+
Schema.Null,
|
|
1127
|
+
])),
|
|
1128
|
+
}).pipe(Schema.encodeKeys({
|
|
1129
|
+
analytics: "analytics",
|
|
1130
|
+
billing: "billing",
|
|
1131
|
+
cachePurge: "cache_purge",
|
|
1132
|
+
dns: "dns",
|
|
1133
|
+
dnsRecords: "dns_records",
|
|
1134
|
+
lb: "lb",
|
|
1135
|
+
logs: "logs",
|
|
1136
|
+
organization: "organization",
|
|
1137
|
+
ssl: "ssl",
|
|
1138
|
+
waf: "waf",
|
|
1139
|
+
zoneSettings: "zone_settings",
|
|
1140
|
+
zones: "zones",
|
|
1141
|
+
})),
|
|
1142
|
+
})),
|
|
1143
|
+
Schema.Null,
|
|
1144
|
+
])),
|
|
680
1145
|
status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.Null])),
|
|
681
|
-
user: Schema.optional(Schema.Union([
|
|
1146
|
+
user: Schema.optional(Schema.Union([
|
|
1147
|
+
Schema.Struct({
|
|
682
1148
|
email: Schema.String,
|
|
683
1149
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
684
1150
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
685
1151
|
lastName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
686
|
-
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
687
|
-
}).pipe(Schema.encodeKeys({
|
|
1152
|
+
twoFactorAuthenticationEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1153
|
+
}).pipe(Schema.encodeKeys({
|
|
1154
|
+
email: "email",
|
|
1155
|
+
id: "id",
|
|
1156
|
+
firstName: "first_name",
|
|
1157
|
+
lastName: "last_name",
|
|
1158
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
1159
|
+
})),
|
|
1160
|
+
Schema.Null,
|
|
1161
|
+
])),
|
|
688
1162
|
}).pipe(T.ResponsePath("result"));
|
|
689
1163
|
export const updateMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
690
1164
|
input: UpdateMemberRequest,
|
|
@@ -693,11 +1167,13 @@ export const updateMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
693
1167
|
}));
|
|
694
1168
|
export const DeleteMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
695
1169
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
696
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
697
|
-
})
|
|
698
|
-
|
|
1170
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1171
|
+
}).pipe(T.Http({
|
|
1172
|
+
method: "DELETE",
|
|
1173
|
+
path: "/accounts/{account_id}/members/{memberId}",
|
|
1174
|
+
}));
|
|
699
1175
|
export const DeleteMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
700
|
-
id: Schema.String
|
|
1176
|
+
id: Schema.String,
|
|
701
1177
|
}).pipe(T.ResponsePath("result"));
|
|
702
1178
|
export const deleteMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
703
1179
|
input: DeleteMemberRequest,
|
|
@@ -706,63 +1182,111 @@ export const deleteMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
706
1182
|
}));
|
|
707
1183
|
export const GetRoleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
708
1184
|
roleId: Schema.String.pipe(T.HttpPath("roleId")),
|
|
709
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
710
|
-
})
|
|
711
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles/{roleId}" }));
|
|
1185
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1186
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles/{roleId}" }));
|
|
712
1187
|
export const GetRoleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
713
1188
|
id: Schema.String,
|
|
714
1189
|
description: Schema.String,
|
|
715
1190
|
name: Schema.String,
|
|
716
1191
|
permissions: Schema.Struct({
|
|
717
|
-
analytics: Schema.optional(Schema.Union([
|
|
1192
|
+
analytics: Schema.optional(Schema.Union([
|
|
1193
|
+
Schema.Struct({
|
|
718
1194
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
719
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
720
|
-
}),
|
|
721
|
-
|
|
1195
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1196
|
+
}),
|
|
1197
|
+
Schema.Null,
|
|
1198
|
+
])),
|
|
1199
|
+
billing: Schema.optional(Schema.Union([
|
|
1200
|
+
Schema.Struct({
|
|
722
1201
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
723
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
724
|
-
}),
|
|
725
|
-
|
|
1202
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1203
|
+
}),
|
|
1204
|
+
Schema.Null,
|
|
1205
|
+
])),
|
|
1206
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
1207
|
+
Schema.Struct({
|
|
726
1208
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
727
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
728
|
-
}),
|
|
729
|
-
|
|
1209
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1210
|
+
}),
|
|
1211
|
+
Schema.Null,
|
|
1212
|
+
])),
|
|
1213
|
+
dns: Schema.optional(Schema.Union([
|
|
1214
|
+
Schema.Struct({
|
|
730
1215
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
731
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
732
|
-
}),
|
|
733
|
-
|
|
1216
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1217
|
+
}),
|
|
1218
|
+
Schema.Null,
|
|
1219
|
+
])),
|
|
1220
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
1221
|
+
Schema.Struct({
|
|
734
1222
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
735
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
736
|
-
}),
|
|
737
|
-
|
|
1223
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1224
|
+
}),
|
|
1225
|
+
Schema.Null,
|
|
1226
|
+
])),
|
|
1227
|
+
lb: Schema.optional(Schema.Union([
|
|
1228
|
+
Schema.Struct({
|
|
738
1229
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
739
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
740
|
-
}),
|
|
741
|
-
|
|
1230
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1231
|
+
}),
|
|
1232
|
+
Schema.Null,
|
|
1233
|
+
])),
|
|
1234
|
+
logs: Schema.optional(Schema.Union([
|
|
1235
|
+
Schema.Struct({
|
|
742
1236
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
743
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
744
|
-
}),
|
|
745
|
-
|
|
1237
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1238
|
+
}),
|
|
1239
|
+
Schema.Null,
|
|
1240
|
+
])),
|
|
1241
|
+
organization: Schema.optional(Schema.Union([
|
|
1242
|
+
Schema.Struct({
|
|
746
1243
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
747
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
748
|
-
}),
|
|
749
|
-
|
|
1244
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1245
|
+
}),
|
|
1246
|
+
Schema.Null,
|
|
1247
|
+
])),
|
|
1248
|
+
ssl: Schema.optional(Schema.Union([
|
|
1249
|
+
Schema.Struct({
|
|
750
1250
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
751
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
752
|
-
}),
|
|
753
|
-
|
|
1251
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1252
|
+
}),
|
|
1253
|
+
Schema.Null,
|
|
1254
|
+
])),
|
|
1255
|
+
waf: Schema.optional(Schema.Union([
|
|
1256
|
+
Schema.Struct({
|
|
754
1257
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
755
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
756
|
-
}),
|
|
757
|
-
|
|
1258
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1259
|
+
}),
|
|
1260
|
+
Schema.Null,
|
|
1261
|
+
])),
|
|
1262
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
1263
|
+
Schema.Struct({
|
|
758
1264
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
759
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
760
|
-
}),
|
|
761
|
-
|
|
1265
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1266
|
+
}),
|
|
1267
|
+
Schema.Null,
|
|
1268
|
+
])),
|
|
1269
|
+
zones: Schema.optional(Schema.Union([
|
|
1270
|
+
Schema.Struct({
|
|
762
1271
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
763
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
764
|
-
}),
|
|
765
|
-
|
|
1272
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1273
|
+
}),
|
|
1274
|
+
Schema.Null,
|
|
1275
|
+
])),
|
|
1276
|
+
}).pipe(Schema.encodeKeys({
|
|
1277
|
+
analytics: "analytics",
|
|
1278
|
+
billing: "billing",
|
|
1279
|
+
cachePurge: "cache_purge",
|
|
1280
|
+
dns: "dns",
|
|
1281
|
+
dnsRecords: "dns_records",
|
|
1282
|
+
lb: "lb",
|
|
1283
|
+
logs: "logs",
|
|
1284
|
+
organization: "organization",
|
|
1285
|
+
ssl: "ssl",
|
|
1286
|
+
waf: "waf",
|
|
1287
|
+
zoneSettings: "zone_settings",
|
|
1288
|
+
zones: "zones",
|
|
1289
|
+
})),
|
|
766
1290
|
}).pipe(T.ResponsePath("result"));
|
|
767
1291
|
export const getRole = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
768
1292
|
input: GetRoleRequest,
|
|
@@ -770,71 +1294,124 @@ export const getRole = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
770
1294
|
errors: [InvalidRoute],
|
|
771
1295
|
}));
|
|
772
1296
|
export const ListRolesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
773
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
774
|
-
})
|
|
775
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles" }));
|
|
1297
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1298
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles" }));
|
|
776
1299
|
export const ListRolesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
777
1300
|
result: Schema.Array(Schema.Struct({
|
|
778
1301
|
id: Schema.String,
|
|
779
1302
|
description: Schema.String,
|
|
780
1303
|
name: Schema.String,
|
|
781
1304
|
permissions: Schema.Struct({
|
|
782
|
-
analytics: Schema.optional(Schema.Union([
|
|
1305
|
+
analytics: Schema.optional(Schema.Union([
|
|
1306
|
+
Schema.Struct({
|
|
783
1307
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
784
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
785
|
-
}),
|
|
786
|
-
|
|
1308
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1309
|
+
}),
|
|
1310
|
+
Schema.Null,
|
|
1311
|
+
])),
|
|
1312
|
+
billing: Schema.optional(Schema.Union([
|
|
1313
|
+
Schema.Struct({
|
|
787
1314
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
788
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
789
|
-
}),
|
|
790
|
-
|
|
1315
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1316
|
+
}),
|
|
1317
|
+
Schema.Null,
|
|
1318
|
+
])),
|
|
1319
|
+
cachePurge: Schema.optional(Schema.Union([
|
|
1320
|
+
Schema.Struct({
|
|
791
1321
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
792
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
793
|
-
}),
|
|
794
|
-
|
|
1322
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1323
|
+
}),
|
|
1324
|
+
Schema.Null,
|
|
1325
|
+
])),
|
|
1326
|
+
dns: Schema.optional(Schema.Union([
|
|
1327
|
+
Schema.Struct({
|
|
795
1328
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
796
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
797
|
-
}),
|
|
798
|
-
|
|
1329
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1330
|
+
}),
|
|
1331
|
+
Schema.Null,
|
|
1332
|
+
])),
|
|
1333
|
+
dnsRecords: Schema.optional(Schema.Union([
|
|
1334
|
+
Schema.Struct({
|
|
799
1335
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
800
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
801
|
-
}),
|
|
802
|
-
|
|
1336
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1337
|
+
}),
|
|
1338
|
+
Schema.Null,
|
|
1339
|
+
])),
|
|
1340
|
+
lb: Schema.optional(Schema.Union([
|
|
1341
|
+
Schema.Struct({
|
|
803
1342
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
804
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
805
|
-
}),
|
|
806
|
-
|
|
1343
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1344
|
+
}),
|
|
1345
|
+
Schema.Null,
|
|
1346
|
+
])),
|
|
1347
|
+
logs: Schema.optional(Schema.Union([
|
|
1348
|
+
Schema.Struct({
|
|
807
1349
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
808
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
809
|
-
}),
|
|
810
|
-
|
|
1350
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1351
|
+
}),
|
|
1352
|
+
Schema.Null,
|
|
1353
|
+
])),
|
|
1354
|
+
organization: Schema.optional(Schema.Union([
|
|
1355
|
+
Schema.Struct({
|
|
811
1356
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
812
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
813
|
-
}),
|
|
814
|
-
|
|
1357
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1358
|
+
}),
|
|
1359
|
+
Schema.Null,
|
|
1360
|
+
])),
|
|
1361
|
+
ssl: Schema.optional(Schema.Union([
|
|
1362
|
+
Schema.Struct({
|
|
815
1363
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
816
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
817
|
-
}),
|
|
818
|
-
|
|
1364
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1365
|
+
}),
|
|
1366
|
+
Schema.Null,
|
|
1367
|
+
])),
|
|
1368
|
+
waf: Schema.optional(Schema.Union([
|
|
1369
|
+
Schema.Struct({
|
|
819
1370
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
820
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
821
|
-
}),
|
|
822
|
-
|
|
1371
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1372
|
+
}),
|
|
1373
|
+
Schema.Null,
|
|
1374
|
+
])),
|
|
1375
|
+
zoneSettings: Schema.optional(Schema.Union([
|
|
1376
|
+
Schema.Struct({
|
|
823
1377
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
824
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
825
|
-
}),
|
|
826
|
-
|
|
1378
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1379
|
+
}),
|
|
1380
|
+
Schema.Null,
|
|
1381
|
+
])),
|
|
1382
|
+
zones: Schema.optional(Schema.Union([
|
|
1383
|
+
Schema.Struct({
|
|
827
1384
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
828
|
-
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
829
|
-
}),
|
|
830
|
-
|
|
1385
|
+
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1386
|
+
}),
|
|
1387
|
+
Schema.Null,
|
|
1388
|
+
])),
|
|
1389
|
+
}).pipe(Schema.encodeKeys({
|
|
1390
|
+
analytics: "analytics",
|
|
1391
|
+
billing: "billing",
|
|
1392
|
+
cachePurge: "cache_purge",
|
|
1393
|
+
dns: "dns",
|
|
1394
|
+
dnsRecords: "dns_records",
|
|
1395
|
+
lb: "lb",
|
|
1396
|
+
logs: "logs",
|
|
1397
|
+
organization: "organization",
|
|
1398
|
+
ssl: "ssl",
|
|
1399
|
+
waf: "waf",
|
|
1400
|
+
zoneSettings: "zone_settings",
|
|
1401
|
+
zones: "zones",
|
|
1402
|
+
})),
|
|
831
1403
|
})),
|
|
832
1404
|
resultInfo: Schema.Struct({
|
|
833
1405
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
834
1406
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
835
1407
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
836
|
-
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
|
|
837
|
-
}).pipe(Schema.encodeKeys({
|
|
1408
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1409
|
+
}).pipe(Schema.encodeKeys({
|
|
1410
|
+
count: "count",
|
|
1411
|
+
page: "page",
|
|
1412
|
+
perPage: "per_page",
|
|
1413
|
+
totalCount: "total_count",
|
|
1414
|
+
})),
|
|
838
1415
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
839
1416
|
export const listRoles = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
840
1417
|
input: ListRolesRequest,
|
|
@@ -849,28 +1426,76 @@ export const listRoles = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
849
1426
|
},
|
|
850
1427
|
}));
|
|
851
1428
|
export const GetSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
852
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
853
|
-
})
|
|
854
|
-
|
|
855
|
-
|
|
1429
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1430
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/subscriptions" }));
|
|
1431
|
+
export const GetSubscriptionResponse =
|
|
1432
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
856
1433
|
result: Schema.Array(Schema.Struct({
|
|
857
1434
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
858
1435
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
859
1436
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
860
1437
|
currentPeriodStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
861
|
-
frequency: Schema.optional(Schema.Union([
|
|
1438
|
+
frequency: Schema.optional(Schema.Union([
|
|
1439
|
+
Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
|
|
1440
|
+
Schema.Null,
|
|
1441
|
+
])),
|
|
862
1442
|
price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
863
|
-
ratePlan: Schema.optional(Schema.Union([
|
|
864
|
-
|
|
1443
|
+
ratePlan: Schema.optional(Schema.Union([
|
|
1444
|
+
Schema.Struct({
|
|
1445
|
+
id: Schema.optional(Schema.Union([
|
|
1446
|
+
Schema.Literals([
|
|
1447
|
+
"free",
|
|
1448
|
+
"lite",
|
|
1449
|
+
"pro",
|
|
1450
|
+
"pro_plus",
|
|
1451
|
+
"business",
|
|
1452
|
+
"enterprise",
|
|
1453
|
+
"partners_free",
|
|
1454
|
+
"partners_pro",
|
|
1455
|
+
"partners_business",
|
|
1456
|
+
"partners_enterprise",
|
|
1457
|
+
]),
|
|
1458
|
+
Schema.Null,
|
|
1459
|
+
])),
|
|
865
1460
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
866
1461
|
externallyManaged: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
867
1462
|
isContract: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
868
1463
|
publicName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
869
1464
|
scope: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
870
|
-
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
871
|
-
}).pipe(Schema.encodeKeys({
|
|
872
|
-
|
|
873
|
-
|
|
1465
|
+
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1466
|
+
}).pipe(Schema.encodeKeys({
|
|
1467
|
+
id: "id",
|
|
1468
|
+
currency: "currency",
|
|
1469
|
+
externallyManaged: "externally_managed",
|
|
1470
|
+
isContract: "is_contract",
|
|
1471
|
+
publicName: "public_name",
|
|
1472
|
+
scope: "scope",
|
|
1473
|
+
sets: "sets",
|
|
1474
|
+
})),
|
|
1475
|
+
Schema.Null,
|
|
1476
|
+
])),
|
|
1477
|
+
state: Schema.optional(Schema.Union([
|
|
1478
|
+
Schema.Literals([
|
|
1479
|
+
"Trial",
|
|
1480
|
+
"Provisioned",
|
|
1481
|
+
"Paid",
|
|
1482
|
+
"AwaitingPayment",
|
|
1483
|
+
"Cancelled",
|
|
1484
|
+
"Failed",
|
|
1485
|
+
"Expired",
|
|
1486
|
+
]),
|
|
1487
|
+
Schema.Null,
|
|
1488
|
+
])),
|
|
1489
|
+
}).pipe(Schema.encodeKeys({
|
|
1490
|
+
id: "id",
|
|
1491
|
+
currency: "currency",
|
|
1492
|
+
currentPeriodEnd: "current_period_end",
|
|
1493
|
+
currentPeriodStart: "current_period_start",
|
|
1494
|
+
frequency: "frequency",
|
|
1495
|
+
price: "price",
|
|
1496
|
+
ratePlan: "rate_plan",
|
|
1497
|
+
state: "state",
|
|
1498
|
+
}))),
|
|
874
1499
|
});
|
|
875
1500
|
export const getSubscription = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
876
1501
|
input: GetSubscriptionRequest,
|
|
@@ -881,89 +1506,238 @@ export const getSubscription = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
|
|
|
881
1506
|
items: "result",
|
|
882
1507
|
},
|
|
883
1508
|
}));
|
|
884
|
-
export const CreateSubscriptionRequest =
|
|
1509
|
+
export const CreateSubscriptionRequest =
|
|
1510
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
885
1511
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
886
1512
|
frequency: Schema.optional(Schema.Literals(["weekly", "monthly", "quarterly", "yearly"])),
|
|
887
1513
|
ratePlan: Schema.optional(Schema.Struct({
|
|
888
|
-
id: Schema.optional(Schema.Literals([
|
|
1514
|
+
id: Schema.optional(Schema.Literals([
|
|
1515
|
+
"free",
|
|
1516
|
+
"lite",
|
|
1517
|
+
"pro",
|
|
1518
|
+
"pro_plus",
|
|
1519
|
+
"business",
|
|
1520
|
+
"enterprise",
|
|
1521
|
+
"partners_free",
|
|
1522
|
+
"partners_pro",
|
|
1523
|
+
"partners_business",
|
|
1524
|
+
"partners_enterprise",
|
|
1525
|
+
])),
|
|
889
1526
|
currency: Schema.optional(Schema.String),
|
|
890
1527
|
externallyManaged: Schema.optional(Schema.Boolean),
|
|
891
1528
|
isContract: Schema.optional(Schema.Boolean),
|
|
892
1529
|
publicName: Schema.optional(Schema.String),
|
|
893
1530
|
scope: Schema.optional(Schema.String),
|
|
894
|
-
sets: Schema.optional(Schema.Array(Schema.String))
|
|
895
|
-
}).pipe(Schema.encodeKeys({
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1531
|
+
sets: Schema.optional(Schema.Array(Schema.String)),
|
|
1532
|
+
}).pipe(Schema.encodeKeys({
|
|
1533
|
+
id: "id",
|
|
1534
|
+
currency: "currency",
|
|
1535
|
+
externallyManaged: "externally_managed",
|
|
1536
|
+
isContract: "is_contract",
|
|
1537
|
+
publicName: "public_name",
|
|
1538
|
+
scope: "scope",
|
|
1539
|
+
sets: "sets",
|
|
1540
|
+
}))),
|
|
1541
|
+
}).pipe(Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }), T.Http({ method: "POST", path: "/accounts/{account_id}/subscriptions" }));
|
|
1542
|
+
export const CreateSubscriptionResponse =
|
|
1543
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
899
1544
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
900
1545
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
901
1546
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
902
1547
|
currentPeriodStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
903
|
-
frequency: Schema.optional(Schema.Union([
|
|
1548
|
+
frequency: Schema.optional(Schema.Union([
|
|
1549
|
+
Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
|
|
1550
|
+
Schema.Null,
|
|
1551
|
+
])),
|
|
904
1552
|
price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
905
|
-
ratePlan: Schema.optional(Schema.Union([
|
|
906
|
-
|
|
1553
|
+
ratePlan: Schema.optional(Schema.Union([
|
|
1554
|
+
Schema.Struct({
|
|
1555
|
+
id: Schema.optional(Schema.Union([
|
|
1556
|
+
Schema.Literals([
|
|
1557
|
+
"free",
|
|
1558
|
+
"lite",
|
|
1559
|
+
"pro",
|
|
1560
|
+
"pro_plus",
|
|
1561
|
+
"business",
|
|
1562
|
+
"enterprise",
|
|
1563
|
+
"partners_free",
|
|
1564
|
+
"partners_pro",
|
|
1565
|
+
"partners_business",
|
|
1566
|
+
"partners_enterprise",
|
|
1567
|
+
]),
|
|
1568
|
+
Schema.Null,
|
|
1569
|
+
])),
|
|
907
1570
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
908
1571
|
externallyManaged: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
909
1572
|
isContract: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
910
1573
|
publicName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
911
1574
|
scope: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
912
|
-
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
913
|
-
}).pipe(Schema.encodeKeys({
|
|
914
|
-
|
|
915
|
-
|
|
1575
|
+
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1576
|
+
}).pipe(Schema.encodeKeys({
|
|
1577
|
+
id: "id",
|
|
1578
|
+
currency: "currency",
|
|
1579
|
+
externallyManaged: "externally_managed",
|
|
1580
|
+
isContract: "is_contract",
|
|
1581
|
+
publicName: "public_name",
|
|
1582
|
+
scope: "scope",
|
|
1583
|
+
sets: "sets",
|
|
1584
|
+
})),
|
|
1585
|
+
Schema.Null,
|
|
1586
|
+
])),
|
|
1587
|
+
state: Schema.optional(Schema.Union([
|
|
1588
|
+
Schema.Literals([
|
|
1589
|
+
"Trial",
|
|
1590
|
+
"Provisioned",
|
|
1591
|
+
"Paid",
|
|
1592
|
+
"AwaitingPayment",
|
|
1593
|
+
"Cancelled",
|
|
1594
|
+
"Failed",
|
|
1595
|
+
"Expired",
|
|
1596
|
+
]),
|
|
1597
|
+
Schema.Null,
|
|
1598
|
+
])),
|
|
1599
|
+
})
|
|
1600
|
+
.pipe(Schema.encodeKeys({
|
|
1601
|
+
id: "id",
|
|
1602
|
+
currency: "currency",
|
|
1603
|
+
currentPeriodEnd: "current_period_end",
|
|
1604
|
+
currentPeriodStart: "current_period_start",
|
|
1605
|
+
frequency: "frequency",
|
|
1606
|
+
price: "price",
|
|
1607
|
+
ratePlan: "rate_plan",
|
|
1608
|
+
state: "state",
|
|
1609
|
+
}))
|
|
1610
|
+
.pipe(T.ResponsePath("result"));
|
|
916
1611
|
export const createSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
917
1612
|
input: CreateSubscriptionRequest,
|
|
918
1613
|
output: CreateSubscriptionResponse,
|
|
919
1614
|
errors: [JsonDecodeFailure, InvalidRoute],
|
|
920
1615
|
}));
|
|
921
|
-
export const UpdateSubscriptionRequest =
|
|
1616
|
+
export const UpdateSubscriptionRequest =
|
|
1617
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
922
1618
|
subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
|
|
923
1619
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
924
1620
|
frequency: Schema.optional(Schema.Literals(["weekly", "monthly", "quarterly", "yearly"])),
|
|
925
1621
|
ratePlan: Schema.optional(Schema.Struct({
|
|
926
|
-
id: Schema.optional(Schema.Literals([
|
|
1622
|
+
id: Schema.optional(Schema.Literals([
|
|
1623
|
+
"free",
|
|
1624
|
+
"lite",
|
|
1625
|
+
"pro",
|
|
1626
|
+
"pro_plus",
|
|
1627
|
+
"business",
|
|
1628
|
+
"enterprise",
|
|
1629
|
+
"partners_free",
|
|
1630
|
+
"partners_pro",
|
|
1631
|
+
"partners_business",
|
|
1632
|
+
"partners_enterprise",
|
|
1633
|
+
])),
|
|
927
1634
|
currency: Schema.optional(Schema.String),
|
|
928
1635
|
externallyManaged: Schema.optional(Schema.Boolean),
|
|
929
1636
|
isContract: Schema.optional(Schema.Boolean),
|
|
930
1637
|
publicName: Schema.optional(Schema.String),
|
|
931
1638
|
scope: Schema.optional(Schema.String),
|
|
932
|
-
sets: Schema.optional(Schema.Array(Schema.String))
|
|
933
|
-
}).pipe(Schema.encodeKeys({
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
1639
|
+
sets: Schema.optional(Schema.Array(Schema.String)),
|
|
1640
|
+
}).pipe(Schema.encodeKeys({
|
|
1641
|
+
id: "id",
|
|
1642
|
+
currency: "currency",
|
|
1643
|
+
externallyManaged: "externally_managed",
|
|
1644
|
+
isContract: "is_contract",
|
|
1645
|
+
publicName: "public_name",
|
|
1646
|
+
scope: "scope",
|
|
1647
|
+
sets: "sets",
|
|
1648
|
+
}))),
|
|
1649
|
+
}).pipe(Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }), T.Http({
|
|
1650
|
+
method: "PUT",
|
|
1651
|
+
path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
|
|
1652
|
+
}));
|
|
1653
|
+
export const UpdateSubscriptionResponse =
|
|
1654
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
937
1655
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
938
1656
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
939
1657
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
940
1658
|
currentPeriodStart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
941
|
-
frequency: Schema.optional(Schema.Union([
|
|
1659
|
+
frequency: Schema.optional(Schema.Union([
|
|
1660
|
+
Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
|
|
1661
|
+
Schema.Null,
|
|
1662
|
+
])),
|
|
942
1663
|
price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
943
|
-
ratePlan: Schema.optional(Schema.Union([
|
|
944
|
-
|
|
1664
|
+
ratePlan: Schema.optional(Schema.Union([
|
|
1665
|
+
Schema.Struct({
|
|
1666
|
+
id: Schema.optional(Schema.Union([
|
|
1667
|
+
Schema.Literals([
|
|
1668
|
+
"free",
|
|
1669
|
+
"lite",
|
|
1670
|
+
"pro",
|
|
1671
|
+
"pro_plus",
|
|
1672
|
+
"business",
|
|
1673
|
+
"enterprise",
|
|
1674
|
+
"partners_free",
|
|
1675
|
+
"partners_pro",
|
|
1676
|
+
"partners_business",
|
|
1677
|
+
"partners_enterprise",
|
|
1678
|
+
]),
|
|
1679
|
+
Schema.Null,
|
|
1680
|
+
])),
|
|
945
1681
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
946
1682
|
externallyManaged: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
947
1683
|
isContract: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
948
1684
|
publicName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
949
1685
|
scope: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
950
|
-
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
951
|
-
}).pipe(Schema.encodeKeys({
|
|
952
|
-
|
|
953
|
-
|
|
1686
|
+
sets: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1687
|
+
}).pipe(Schema.encodeKeys({
|
|
1688
|
+
id: "id",
|
|
1689
|
+
currency: "currency",
|
|
1690
|
+
externallyManaged: "externally_managed",
|
|
1691
|
+
isContract: "is_contract",
|
|
1692
|
+
publicName: "public_name",
|
|
1693
|
+
scope: "scope",
|
|
1694
|
+
sets: "sets",
|
|
1695
|
+
})),
|
|
1696
|
+
Schema.Null,
|
|
1697
|
+
])),
|
|
1698
|
+
state: Schema.optional(Schema.Union([
|
|
1699
|
+
Schema.Literals([
|
|
1700
|
+
"Trial",
|
|
1701
|
+
"Provisioned",
|
|
1702
|
+
"Paid",
|
|
1703
|
+
"AwaitingPayment",
|
|
1704
|
+
"Cancelled",
|
|
1705
|
+
"Failed",
|
|
1706
|
+
"Expired",
|
|
1707
|
+
]),
|
|
1708
|
+
Schema.Null,
|
|
1709
|
+
])),
|
|
1710
|
+
})
|
|
1711
|
+
.pipe(Schema.encodeKeys({
|
|
1712
|
+
id: "id",
|
|
1713
|
+
currency: "currency",
|
|
1714
|
+
currentPeriodEnd: "current_period_end",
|
|
1715
|
+
currentPeriodStart: "current_period_start",
|
|
1716
|
+
frequency: "frequency",
|
|
1717
|
+
price: "price",
|
|
1718
|
+
ratePlan: "rate_plan",
|
|
1719
|
+
state: "state",
|
|
1720
|
+
}))
|
|
1721
|
+
.pipe(T.ResponsePath("result"));
|
|
954
1722
|
export const updateSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
955
1723
|
input: UpdateSubscriptionRequest,
|
|
956
1724
|
output: UpdateSubscriptionResponse,
|
|
957
1725
|
errors: [JsonDecodeFailure, InvalidRoute, EndpointNotFound],
|
|
958
1726
|
}));
|
|
959
|
-
export const DeleteSubscriptionRequest =
|
|
1727
|
+
export const DeleteSubscriptionRequest =
|
|
1728
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
960
1729
|
subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
|
|
961
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
1730
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1731
|
+
}).pipe(T.Http({
|
|
1732
|
+
method: "DELETE",
|
|
1733
|
+
path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
|
|
1734
|
+
}));
|
|
1735
|
+
export const DeleteSubscriptionResponse =
|
|
1736
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1737
|
+
subscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
962
1738
|
})
|
|
963
|
-
.pipe(
|
|
964
|
-
|
|
965
|
-
subscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
966
|
-
}).pipe(Schema.encodeKeys({ subscriptionId: "subscription_id" })).pipe(T.ResponsePath("result"));
|
|
1739
|
+
.pipe(Schema.encodeKeys({ subscriptionId: "subscription_id" }))
|
|
1740
|
+
.pipe(T.ResponsePath("result"));
|
|
967
1741
|
export const deleteSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
968
1742
|
input: DeleteSubscriptionRequest,
|
|
969
1743
|
output: DeleteSubscriptionResponse,
|
|
@@ -971,38 +1745,70 @@ export const deleteSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
971
1745
|
}));
|
|
972
1746
|
export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
973
1747
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
974
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
975
|
-
})
|
|
976
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/{tokenId}" }));
|
|
1748
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1749
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/{tokenId}" }));
|
|
977
1750
|
export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
978
1751
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
979
|
-
condition: Schema.optional(Schema.Union([
|
|
980
|
-
|
|
1752
|
+
condition: Schema.optional(Schema.Union([
|
|
1753
|
+
Schema.Struct({
|
|
1754
|
+
requestIp: Schema.optional(Schema.Union([
|
|
1755
|
+
Schema.Struct({
|
|
981
1756
|
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
982
|
-
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
983
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
984
|
-
|
|
1757
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1758
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1759
|
+
Schema.Null,
|
|
1760
|
+
])),
|
|
1761
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
1762
|
+
Schema.Null,
|
|
1763
|
+
])),
|
|
985
1764
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
986
1765
|
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
987
1766
|
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
988
1767
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
989
1768
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
990
1769
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
991
|
-
policies: Schema.optional(Schema.Union([
|
|
1770
|
+
policies: Schema.optional(Schema.Union([
|
|
1771
|
+
Schema.Array(Schema.Struct({
|
|
992
1772
|
id: Schema.String,
|
|
993
1773
|
effect: Schema.Literals(["allow", "deny"]),
|
|
994
1774
|
permissionGroups: Schema.Array(Schema.Struct({
|
|
995
1775
|
id: Schema.String,
|
|
996
|
-
meta: Schema.optional(Schema.Union([
|
|
1776
|
+
meta: Schema.optional(Schema.Union([
|
|
1777
|
+
Schema.Struct({
|
|
997
1778
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
998
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
999
|
-
}),
|
|
1000
|
-
|
|
1779
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1780
|
+
}),
|
|
1781
|
+
Schema.Null,
|
|
1782
|
+
])),
|
|
1783
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1001
1784
|
})),
|
|
1002
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1003
|
-
}).pipe(Schema.encodeKeys({
|
|
1004
|
-
|
|
1005
|
-
|
|
1785
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
1786
|
+
}).pipe(Schema.encodeKeys({
|
|
1787
|
+
id: "id",
|
|
1788
|
+
effect: "effect",
|
|
1789
|
+
permissionGroups: "permission_groups",
|
|
1790
|
+
resources: "resources",
|
|
1791
|
+
}))),
|
|
1792
|
+
Schema.Null,
|
|
1793
|
+
])),
|
|
1794
|
+
status: Schema.optional(Schema.Union([
|
|
1795
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
1796
|
+
Schema.Null,
|
|
1797
|
+
])),
|
|
1798
|
+
})
|
|
1799
|
+
.pipe(Schema.encodeKeys({
|
|
1800
|
+
id: "id",
|
|
1801
|
+
condition: "condition",
|
|
1802
|
+
expiresOn: "expires_on",
|
|
1803
|
+
issuedOn: "issued_on",
|
|
1804
|
+
lastUsedOn: "last_used_on",
|
|
1805
|
+
modifiedOn: "modified_on",
|
|
1806
|
+
name: "name",
|
|
1807
|
+
notBefore: "not_before",
|
|
1808
|
+
policies: "policies",
|
|
1809
|
+
status: "status",
|
|
1810
|
+
}))
|
|
1811
|
+
.pipe(T.ResponsePath("result"));
|
|
1006
1812
|
export const getToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1007
1813
|
input: GetTokenRequest,
|
|
1008
1814
|
output: GetTokenResponse,
|
|
@@ -1010,45 +1816,80 @@ export const getToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1010
1816
|
}));
|
|
1011
1817
|
export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1012
1818
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1013
|
-
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction"))
|
|
1014
|
-
})
|
|
1015
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" }));
|
|
1819
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
|
|
1820
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" }));
|
|
1016
1821
|
export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1017
1822
|
result: Schema.Array(Schema.Struct({
|
|
1018
1823
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1019
|
-
condition: Schema.optional(Schema.Union([
|
|
1020
|
-
|
|
1824
|
+
condition: Schema.optional(Schema.Union([
|
|
1825
|
+
Schema.Struct({
|
|
1826
|
+
requestIp: Schema.optional(Schema.Union([
|
|
1827
|
+
Schema.Struct({
|
|
1021
1828
|
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1022
|
-
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
1023
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1024
|
-
|
|
1829
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1830
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1831
|
+
Schema.Null,
|
|
1832
|
+
])),
|
|
1833
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
1834
|
+
Schema.Null,
|
|
1835
|
+
])),
|
|
1025
1836
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1026
1837
|
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1027
1838
|
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1028
1839
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1029
1840
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1030
1841
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1031
|
-
policies: Schema.optional(Schema.Union([
|
|
1842
|
+
policies: Schema.optional(Schema.Union([
|
|
1843
|
+
Schema.Array(Schema.Struct({
|
|
1032
1844
|
id: Schema.String,
|
|
1033
1845
|
effect: Schema.Literals(["allow", "deny"]),
|
|
1034
1846
|
permissionGroups: Schema.Array(Schema.Struct({
|
|
1035
1847
|
id: Schema.String,
|
|
1036
|
-
meta: Schema.optional(Schema.Union([
|
|
1848
|
+
meta: Schema.optional(Schema.Union([
|
|
1849
|
+
Schema.Struct({
|
|
1037
1850
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1038
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
1039
|
-
}),
|
|
1040
|
-
|
|
1851
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1852
|
+
}),
|
|
1853
|
+
Schema.Null,
|
|
1854
|
+
])),
|
|
1855
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1041
1856
|
})),
|
|
1042
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1043
|
-
}).pipe(Schema.encodeKeys({
|
|
1044
|
-
|
|
1045
|
-
|
|
1857
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
1858
|
+
}).pipe(Schema.encodeKeys({
|
|
1859
|
+
id: "id",
|
|
1860
|
+
effect: "effect",
|
|
1861
|
+
permissionGroups: "permission_groups",
|
|
1862
|
+
resources: "resources",
|
|
1863
|
+
}))),
|
|
1864
|
+
Schema.Null,
|
|
1865
|
+
])),
|
|
1866
|
+
status: Schema.optional(Schema.Union([
|
|
1867
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
1868
|
+
Schema.Null,
|
|
1869
|
+
])),
|
|
1870
|
+
}).pipe(Schema.encodeKeys({
|
|
1871
|
+
id: "id",
|
|
1872
|
+
condition: "condition",
|
|
1873
|
+
expiresOn: "expires_on",
|
|
1874
|
+
issuedOn: "issued_on",
|
|
1875
|
+
lastUsedOn: "last_used_on",
|
|
1876
|
+
modifiedOn: "modified_on",
|
|
1877
|
+
name: "name",
|
|
1878
|
+
notBefore: "not_before",
|
|
1879
|
+
policies: "policies",
|
|
1880
|
+
status: "status",
|
|
1881
|
+
}))),
|
|
1046
1882
|
resultInfo: Schema.Struct({
|
|
1047
1883
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1048
1884
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1049
1885
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1050
|
-
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
|
|
1051
|
-
}).pipe(Schema.encodeKeys({
|
|
1886
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1887
|
+
}).pipe(Schema.encodeKeys({
|
|
1888
|
+
count: "count",
|
|
1889
|
+
page: "page",
|
|
1890
|
+
perPage: "per_page",
|
|
1891
|
+
totalCount: "total_count",
|
|
1892
|
+
})),
|
|
1052
1893
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1053
1894
|
export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
1054
1895
|
input: ListTokensRequest,
|
|
@@ -1071,51 +1912,94 @@ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1071
1912
|
id: Schema.String,
|
|
1072
1913
|
meta: Schema.optional(Schema.Struct({
|
|
1073
1914
|
key: Schema.optional(Schema.String),
|
|
1074
|
-
value: Schema.optional(Schema.String)
|
|
1075
|
-
}))
|
|
1915
|
+
value: Schema.optional(Schema.String),
|
|
1916
|
+
})),
|
|
1076
1917
|
})),
|
|
1077
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1078
|
-
}).pipe(Schema.encodeKeys({
|
|
1918
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
1919
|
+
}).pipe(Schema.encodeKeys({
|
|
1920
|
+
effect: "effect",
|
|
1921
|
+
permissionGroups: "permission_groups",
|
|
1922
|
+
resources: "resources",
|
|
1923
|
+
}))),
|
|
1079
1924
|
condition: Schema.optional(Schema.Struct({
|
|
1080
1925
|
requestIp: Schema.optional(Schema.Struct({
|
|
1081
1926
|
in: Schema.optional(Schema.Array(Schema.String)),
|
|
1082
|
-
notIn: Schema.optional(Schema.Array(Schema.String))
|
|
1083
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })))
|
|
1927
|
+
notIn: Schema.optional(Schema.Array(Schema.String)),
|
|
1928
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" }))),
|
|
1084
1929
|
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" }))),
|
|
1085
1930
|
expiresOn: Schema.optional(Schema.String),
|
|
1086
|
-
notBefore: Schema.optional(Schema.String)
|
|
1087
|
-
})
|
|
1088
|
-
|
|
1931
|
+
notBefore: Schema.optional(Schema.String),
|
|
1932
|
+
}).pipe(Schema.encodeKeys({
|
|
1933
|
+
name: "name",
|
|
1934
|
+
policies: "policies",
|
|
1935
|
+
condition: "condition",
|
|
1936
|
+
expiresOn: "expires_on",
|
|
1937
|
+
notBefore: "not_before",
|
|
1938
|
+
}), T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" }));
|
|
1089
1939
|
export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1090
1940
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1091
|
-
condition: Schema.optional(Schema.Union([
|
|
1092
|
-
|
|
1941
|
+
condition: Schema.optional(Schema.Union([
|
|
1942
|
+
Schema.Struct({
|
|
1943
|
+
requestIp: Schema.optional(Schema.Union([
|
|
1944
|
+
Schema.Struct({
|
|
1093
1945
|
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1094
|
-
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
1095
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1096
|
-
|
|
1946
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1947
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1948
|
+
Schema.Null,
|
|
1949
|
+
])),
|
|
1950
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
1951
|
+
Schema.Null,
|
|
1952
|
+
])),
|
|
1097
1953
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1098
1954
|
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1099
1955
|
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1100
1956
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1101
1957
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1102
1958
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1103
|
-
policies: Schema.optional(Schema.Union([
|
|
1959
|
+
policies: Schema.optional(Schema.Union([
|
|
1960
|
+
Schema.Array(Schema.Struct({
|
|
1104
1961
|
id: Schema.String,
|
|
1105
1962
|
effect: Schema.Literals(["allow", "deny"]),
|
|
1106
1963
|
permissionGroups: Schema.Array(Schema.Struct({
|
|
1107
1964
|
id: Schema.String,
|
|
1108
|
-
meta: Schema.optional(Schema.Union([
|
|
1965
|
+
meta: Schema.optional(Schema.Union([
|
|
1966
|
+
Schema.Struct({
|
|
1109
1967
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1110
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
1111
|
-
}),
|
|
1112
|
-
|
|
1968
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1969
|
+
}),
|
|
1970
|
+
Schema.Null,
|
|
1971
|
+
])),
|
|
1972
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1113
1973
|
})),
|
|
1114
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1115
|
-
}).pipe(Schema.encodeKeys({
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1974
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
1975
|
+
}).pipe(Schema.encodeKeys({
|
|
1976
|
+
id: "id",
|
|
1977
|
+
effect: "effect",
|
|
1978
|
+
permissionGroups: "permission_groups",
|
|
1979
|
+
resources: "resources",
|
|
1980
|
+
}))),
|
|
1981
|
+
Schema.Null,
|
|
1982
|
+
])),
|
|
1983
|
+
status: Schema.optional(Schema.Union([
|
|
1984
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
1985
|
+
Schema.Null,
|
|
1986
|
+
])),
|
|
1987
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1988
|
+
})
|
|
1989
|
+
.pipe(Schema.encodeKeys({
|
|
1990
|
+
id: "id",
|
|
1991
|
+
condition: "condition",
|
|
1992
|
+
expiresOn: "expires_on",
|
|
1993
|
+
issuedOn: "issued_on",
|
|
1994
|
+
lastUsedOn: "last_used_on",
|
|
1995
|
+
modifiedOn: "modified_on",
|
|
1996
|
+
name: "name",
|
|
1997
|
+
notBefore: "not_before",
|
|
1998
|
+
policies: "policies",
|
|
1999
|
+
status: "status",
|
|
2000
|
+
value: "value",
|
|
2001
|
+
}))
|
|
2002
|
+
.pipe(T.ResponsePath("result"));
|
|
1119
2003
|
export const createToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1120
2004
|
input: CreateTokenRequest,
|
|
1121
2005
|
output: CreateTokenResponse,
|
|
@@ -1131,63 +2015,110 @@ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1131
2015
|
id: Schema.String,
|
|
1132
2016
|
meta: Schema.optional(Schema.Struct({
|
|
1133
2017
|
key: Schema.optional(Schema.String),
|
|
1134
|
-
value: Schema.optional(Schema.String)
|
|
1135
|
-
}))
|
|
2018
|
+
value: Schema.optional(Schema.String),
|
|
2019
|
+
})),
|
|
1136
2020
|
})),
|
|
1137
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1138
|
-
}).pipe(Schema.encodeKeys({
|
|
2021
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
2022
|
+
}).pipe(Schema.encodeKeys({
|
|
2023
|
+
effect: "effect",
|
|
2024
|
+
permissionGroups: "permission_groups",
|
|
2025
|
+
resources: "resources",
|
|
2026
|
+
}))),
|
|
1139
2027
|
condition: Schema.optional(Schema.Struct({
|
|
1140
2028
|
requestIp: Schema.optional(Schema.Struct({
|
|
1141
2029
|
in: Schema.optional(Schema.Array(Schema.String)),
|
|
1142
|
-
notIn: Schema.optional(Schema.Array(Schema.String))
|
|
1143
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })))
|
|
2030
|
+
notIn: Schema.optional(Schema.Array(Schema.String)),
|
|
2031
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" }))),
|
|
1144
2032
|
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" }))),
|
|
1145
2033
|
expiresOn: Schema.optional(Schema.String),
|
|
1146
2034
|
notBefore: Schema.optional(Schema.String),
|
|
1147
|
-
status: Schema.optional(Schema.Literals(["active", "disabled", "expired"]))
|
|
1148
|
-
})
|
|
1149
|
-
|
|
2035
|
+
status: Schema.optional(Schema.Literals(["active", "disabled", "expired"])),
|
|
2036
|
+
}).pipe(Schema.encodeKeys({
|
|
2037
|
+
name: "name",
|
|
2038
|
+
policies: "policies",
|
|
2039
|
+
condition: "condition",
|
|
2040
|
+
expiresOn: "expires_on",
|
|
2041
|
+
notBefore: "not_before",
|
|
2042
|
+
status: "status",
|
|
2043
|
+
}), T.Http({ method: "PUT", path: "/accounts/{account_id}/tokens/{tokenId}" }));
|
|
1150
2044
|
export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1151
2045
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1152
|
-
condition: Schema.optional(Schema.Union([
|
|
1153
|
-
|
|
2046
|
+
condition: Schema.optional(Schema.Union([
|
|
2047
|
+
Schema.Struct({
|
|
2048
|
+
requestIp: Schema.optional(Schema.Union([
|
|
2049
|
+
Schema.Struct({
|
|
1154
2050
|
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1155
|
-
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
1156
|
-
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
1157
|
-
|
|
2051
|
+
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2052
|
+
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })),
|
|
2053
|
+
Schema.Null,
|
|
2054
|
+
])),
|
|
2055
|
+
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })),
|
|
2056
|
+
Schema.Null,
|
|
2057
|
+
])),
|
|
1158
2058
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1159
2059
|
issuedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1160
2060
|
lastUsedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1161
2061
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1162
2062
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1163
2063
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1164
|
-
policies: Schema.optional(Schema.Union([
|
|
2064
|
+
policies: Schema.optional(Schema.Union([
|
|
2065
|
+
Schema.Array(Schema.Struct({
|
|
1165
2066
|
id: Schema.String,
|
|
1166
2067
|
effect: Schema.Literals(["allow", "deny"]),
|
|
1167
2068
|
permissionGroups: Schema.Array(Schema.Struct({
|
|
1168
2069
|
id: Schema.String,
|
|
1169
|
-
meta: Schema.optional(Schema.Union([
|
|
2070
|
+
meta: Schema.optional(Schema.Union([
|
|
2071
|
+
Schema.Struct({
|
|
1170
2072
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1171
|
-
value: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
1172
|
-
}),
|
|
1173
|
-
|
|
2073
|
+
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2074
|
+
}),
|
|
2075
|
+
Schema.Null,
|
|
2076
|
+
])),
|
|
2077
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1174
2078
|
})),
|
|
1175
|
-
resources: Schema.Record(Schema.String, Schema.Unknown)
|
|
1176
|
-
}).pipe(Schema.encodeKeys({
|
|
1177
|
-
|
|
1178
|
-
|
|
2079
|
+
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
2080
|
+
}).pipe(Schema.encodeKeys({
|
|
2081
|
+
id: "id",
|
|
2082
|
+
effect: "effect",
|
|
2083
|
+
permissionGroups: "permission_groups",
|
|
2084
|
+
resources: "resources",
|
|
2085
|
+
}))),
|
|
2086
|
+
Schema.Null,
|
|
2087
|
+
])),
|
|
2088
|
+
status: Schema.optional(Schema.Union([
|
|
2089
|
+
Schema.Literals(["active", "disabled", "expired"]),
|
|
2090
|
+
Schema.Null,
|
|
2091
|
+
])),
|
|
2092
|
+
})
|
|
2093
|
+
.pipe(Schema.encodeKeys({
|
|
2094
|
+
id: "id",
|
|
2095
|
+
condition: "condition",
|
|
2096
|
+
expiresOn: "expires_on",
|
|
2097
|
+
issuedOn: "issued_on",
|
|
2098
|
+
lastUsedOn: "last_used_on",
|
|
2099
|
+
modifiedOn: "modified_on",
|
|
2100
|
+
name: "name",
|
|
2101
|
+
notBefore: "not_before",
|
|
2102
|
+
policies: "policies",
|
|
2103
|
+
status: "status",
|
|
2104
|
+
}))
|
|
2105
|
+
.pipe(T.ResponsePath("result"));
|
|
1179
2106
|
export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1180
2107
|
input: UpdateTokenRequest,
|
|
1181
2108
|
output: UpdateTokenResponse,
|
|
1182
|
-
errors: [
|
|
2109
|
+
errors: [
|
|
2110
|
+
InvalidRoute,
|
|
2111
|
+
MethodNotAllowed,
|
|
2112
|
+
TokenNotFound,
|
|
2113
|
+
PermissionGroupNotFound,
|
|
2114
|
+
],
|
|
1183
2115
|
}));
|
|
1184
2116
|
export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1185
2117
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1186
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
1187
|
-
})
|
|
1188
|
-
.pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/tokens/{tokenId}" }));
|
|
2118
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2119
|
+
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/tokens/{tokenId}" }));
|
|
1189
2120
|
export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1190
|
-
id: Schema.String
|
|
2121
|
+
id: Schema.String,
|
|
1191
2122
|
}).pipe(T.ResponsePath("result"));
|
|
1192
2123
|
export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1193
2124
|
input: DeleteTokenRequest,
|
|
@@ -1195,48 +2126,78 @@ export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1195
2126
|
errors: [InvalidRoute, MethodNotAllowed, TokenNotFound],
|
|
1196
2127
|
}));
|
|
1197
2128
|
export const VerifyTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1198
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id"))
|
|
1199
|
-
})
|
|
1200
|
-
.pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" }));
|
|
2129
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2130
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" }));
|
|
1201
2131
|
export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1202
2132
|
id: Schema.String,
|
|
1203
2133
|
status: Schema.Literals(["active", "disabled", "expired"]),
|
|
1204
2134
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1205
|
-
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
|
|
1206
|
-
})
|
|
2135
|
+
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2136
|
+
})
|
|
2137
|
+
.pipe(Schema.encodeKeys({
|
|
2138
|
+
id: "id",
|
|
2139
|
+
status: "status",
|
|
2140
|
+
expiresOn: "expires_on",
|
|
2141
|
+
notBefore: "not_before",
|
|
2142
|
+
}))
|
|
2143
|
+
.pipe(T.ResponsePath("result"));
|
|
1207
2144
|
export const verifyToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1208
2145
|
input: VerifyTokenRequest,
|
|
1209
2146
|
output: VerifyTokenResponse,
|
|
1210
2147
|
errors: [MissingAuthenticationToken, InvalidRoute],
|
|
1211
2148
|
}));
|
|
1212
|
-
export const GetTokenPermissionGroupRequest =
|
|
2149
|
+
export const GetTokenPermissionGroupRequest =
|
|
2150
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1213
2151
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1214
2152
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1215
|
-
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope"))
|
|
1216
|
-
})
|
|
1217
|
-
|
|
1218
|
-
|
|
2153
|
+
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
|
|
2154
|
+
}).pipe(T.Http({
|
|
2155
|
+
method: "GET",
|
|
2156
|
+
path: "/accounts/{account_id}/tokens/permission_groups",
|
|
2157
|
+
}));
|
|
2158
|
+
export const GetTokenPermissionGroupResponse =
|
|
2159
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
1219
2160
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1220
2161
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1221
|
-
scopes: Schema.optional(Schema.Union([
|
|
2162
|
+
scopes: Schema.optional(Schema.Union([
|
|
2163
|
+
Schema.Array(Schema.Literals([
|
|
2164
|
+
"com.cloudflare.api.account",
|
|
2165
|
+
"com.cloudflare.api.account.zone",
|
|
2166
|
+
"com.cloudflare.api.user",
|
|
2167
|
+
"com.cloudflare.edge.r2.bucket",
|
|
2168
|
+
])),
|
|
2169
|
+
Schema.Null,
|
|
2170
|
+
])),
|
|
1222
2171
|
})).pipe(T.ResponsePath("result"));
|
|
1223
2172
|
export const getTokenPermissionGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1224
2173
|
input: GetTokenPermissionGroupRequest,
|
|
1225
2174
|
output: GetTokenPermissionGroupResponse,
|
|
1226
2175
|
errors: [InvalidRoute],
|
|
1227
2176
|
}));
|
|
1228
|
-
export const ListTokenPermissionGroupsRequest =
|
|
2177
|
+
export const ListTokenPermissionGroupsRequest =
|
|
2178
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1229
2179
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1230
2180
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1231
|
-
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope"))
|
|
1232
|
-
})
|
|
1233
|
-
|
|
1234
|
-
|
|
2181
|
+
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
|
|
2182
|
+
}).pipe(T.Http({
|
|
2183
|
+
method: "GET",
|
|
2184
|
+
path: "/accounts/{account_id}/tokens/permission_groups",
|
|
2185
|
+
}));
|
|
2186
|
+
export const ListTokenPermissionGroupsResponse =
|
|
2187
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1235
2188
|
result: Schema.Array(Schema.Struct({
|
|
1236
2189
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1237
2190
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1238
|
-
scopes: Schema.optional(Schema.Union([
|
|
1239
|
-
|
|
2191
|
+
scopes: Schema.optional(Schema.Union([
|
|
2192
|
+
Schema.Array(Schema.Literals([
|
|
2193
|
+
"com.cloudflare.api.account",
|
|
2194
|
+
"com.cloudflare.api.account.zone",
|
|
2195
|
+
"com.cloudflare.api.user",
|
|
2196
|
+
"com.cloudflare.edge.r2.bucket",
|
|
2197
|
+
])),
|
|
2198
|
+
Schema.Null,
|
|
2199
|
+
])),
|
|
2200
|
+
})),
|
|
1240
2201
|
});
|
|
1241
2202
|
export const listTokenPermissionGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
1242
2203
|
input: ListTokenPermissionGroupsRequest,
|
|
@@ -1250,10 +2211,13 @@ export const listTokenPermissionGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePag
|
|
|
1250
2211
|
export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1251
2212
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1252
2213
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1253
|
-
body: Schema.Unknown.pipe(T.HttpBody())
|
|
1254
|
-
})
|
|
1255
|
-
|
|
1256
|
-
|
|
2214
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
2215
|
+
}).pipe(T.Http({
|
|
2216
|
+
method: "PUT",
|
|
2217
|
+
path: "/accounts/{account_id}/tokens/{tokenId}/value",
|
|
2218
|
+
}));
|
|
2219
|
+
export const PutTokenValueResponse =
|
|
2220
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
1257
2221
|
export const putTokenValue = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1258
2222
|
input: PutTokenValueRequest,
|
|
1259
2223
|
output: PutTokenValueResponse,
|