@turnkey/http 0.1.1

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.
@@ -0,0 +1,1257 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export type paths = {
6
+ "/public/v1/query/get_activity": {
7
+ /** Get details about an Activity */
8
+ post: operations["PublicApiService_GetActivity"];
9
+ };
10
+ "/public/v1/query/get_key": {
11
+ /** Get details about a Private Key */
12
+ post: operations["PublicApiService_GetKey"];
13
+ };
14
+ "/public/v1/query/get_organization": {
15
+ /** Get details about an Organization */
16
+ post: operations["PublicApiService_GetOrganization"];
17
+ };
18
+ "/public/v1/query/get_user": {
19
+ /** Get details about a User */
20
+ post: operations["PublicApiService_GetUser"];
21
+ };
22
+ "/public/v1/query/list_keys": {
23
+ /** List all Private Keys within an Organization */
24
+ post: operations["PublicApiService_GetKeys"];
25
+ };
26
+ "/public/v1/query/list_users": {
27
+ /** List all Users within an Organization */
28
+ post: operations["PublicApiService_GetUsers"];
29
+ };
30
+ "/public/v1/query/whoami": {
31
+ /** Get basic information about your current API user and your organization */
32
+ post: operations["PublicApiService_GetWhoami"];
33
+ };
34
+ "/public/v1/submit/create_api_keys": {
35
+ /** Add api keys to an existing User */
36
+ post: operations["PublicApiService_CreateApiKeys"];
37
+ };
38
+ "/public/v1/submit/create_invitations": {
39
+ /** Create Invitations to join an existing Organization */
40
+ post: operations["PublicApiService_CreateInvitations"];
41
+ };
42
+ "/public/v1/submit/create_keys": {
43
+ /** Create new Private Keys */
44
+ post: operations["PublicApiService_CreateKeys"];
45
+ };
46
+ "/public/v1/submit/create_policy": {
47
+ /** Create a new Policy */
48
+ post: operations["PublicApiService_CreatePolicy"];
49
+ };
50
+ "/public/v1/submit/create_users": {
51
+ /** Create new API Users */
52
+ post: operations["PublicApiService_CreateUsers"];
53
+ };
54
+ "/public/v1/submit/delete_api_keys": {
55
+ /** Remove api keys from a User */
56
+ post: operations["PublicApiService_DeleteApiKeys"];
57
+ };
58
+ "/public/v1/submit/delete_invitations": {
59
+ /** Delete an existing Invitation */
60
+ post: operations["PublicApiService_DeleteInvitation"];
61
+ };
62
+ "/public/v1/submit/delete_policy": {
63
+ /** Delete an existing Policy */
64
+ post: operations["PublicApiService_DeletePolicy"];
65
+ };
66
+ "/public/v1/submit/delete_users": {
67
+ /** Deactivate an existing User */
68
+ post: operations["PublicApiService_DeleteUsers"];
69
+ };
70
+ "/public/v1/submit/sign": {
71
+ /** Sign a message with a Private Key */
72
+ post: operations["PublicApiService_SignMessage"];
73
+ };
74
+ "/public/v1/submit/sign_transaction": {
75
+ /** Sign a transaction with a Private Key */
76
+ post: operations["PublicApiService_SignTransaction"];
77
+ };
78
+ };
79
+ export type definitions = {
80
+ activityActivity: {
81
+ id: string;
82
+ organizationId: string;
83
+ status: definitions["activityActivityStatus"];
84
+ type: definitions["activityActivityType"];
85
+ intent: definitions["enforcementIntent"];
86
+ result: definitions["enforcementResult"];
87
+ votes: definitions["activityVote"][];
88
+ fingerprint: string;
89
+ canApprove: boolean;
90
+ canReject: boolean;
91
+ };
92
+ /** @enum {string} */
93
+ activityActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
94
+ /**
95
+ * These are all of the types of user-facing activities on Turnkey
96
+ * We use this to guide the polymorphic parsing of activity requests/approvals/rejections
97
+ * One activity type maps to one internal Intent, but not all internal intents have a user-facing activity (e.g. Hearbeats)
98
+ * @enum {string}
99
+ */
100
+ activityActivityType: "ACTIVITY_TYPE_ADD_API_KEYS" | "ACTIVITY_TYPE_ADD_USERS" | "ACTIVITY_TYPE_ADD_KEYS" | "ACTIVITY_TYPE_SIGN_MESSAGE" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_ADD_POLICY" | "ACTIVITY_TYPE_REMOVE_KEY" | "ACTIVITY_TYPE_REMOVE_USERS" | "ACTIVITY_TYPE_REMOVE_API_KEYS" | "ACTIVITY_TYPE_REMOVE_INVITATION" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION" | "ACTIVITY_TYPE_REMOVE_POLICY" | "ACTIVITY_TYPE_ADD_TAG" | "ACTIVITY_TYPE_REMOVE_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_REMOVE_AUTHENTICATORS" | "ACTIVITY_TYPE_ADD_AUTHENTICATORS";
101
+ activityCreateApiKeysRequest: {
102
+ /** @enum {string} */
103
+ type: "ACTIVITY_TYPE_ADD_API_KEYS";
104
+ requestId?: string;
105
+ organizationId: string;
106
+ intent: definitions["enforcementAddApiKeysIntent"];
107
+ };
108
+ activityCreateInvitationsRequest: {
109
+ /** @enum {string} */
110
+ type: "ACTIVITY_TYPE_CREATE_INVITATIONS";
111
+ requestId: string;
112
+ organizationId: string;
113
+ intent: definitions["enforcementCreateInvitationsIntent"];
114
+ };
115
+ activityCreateKeysRequest: {
116
+ /** @enum {string} */
117
+ type: "ACTIVITY_TYPE_ADD_KEYS";
118
+ requestId: string;
119
+ organizationId: string;
120
+ intent: definitions["enforcementAddKeysIntent"];
121
+ };
122
+ /** TODO(tim) - add timestamp to all these requests to prevent replay attack in the event the DB has been tampered with */
123
+ activityCreatePolicyRequest: {
124
+ /** @enum {string} */
125
+ type: "ACTIVITY_TYPE_ADD_POLICY";
126
+ requestId: string;
127
+ organizationId: string;
128
+ intent: definitions["enforcementAddPolicyIntent"];
129
+ };
130
+ activityCreateUsersRequest: {
131
+ /** @enum {string} */
132
+ type: "ACTIVITY_TYPE_ADD_USERS";
133
+ requestId: string;
134
+ organizationId: string;
135
+ intent: definitions["enforcementAddUsersIntent"];
136
+ };
137
+ activityDeleteApiKeysRequest: {
138
+ /** @enum {string} */
139
+ type: "ACTIVITY_TYPE_REMOVE_API_KEYS";
140
+ requestId: string;
141
+ organizationId: string;
142
+ intent: definitions["enforcementRemoveApiKeysIntent"];
143
+ };
144
+ activityDeleteInvitationRequest: {
145
+ /** @enum {string} */
146
+ type: "ACTIVITY_TYPE_REMOVE_INVITATION";
147
+ requestId: string;
148
+ organizationId: string;
149
+ intent: definitions["enforcementRemoveInvitationIntent"];
150
+ };
151
+ activityDeletePolicyRequest: {
152
+ /** @enum {string} */
153
+ type: "ACTIVITY_TYPE_REMOVE_POLICY";
154
+ requestId: string;
155
+ organizationId: string;
156
+ intent: definitions["enforcementRemovePolicyIntent"];
157
+ };
158
+ activityDeleteUsersRequest: {
159
+ /** @enum {string} */
160
+ type: "ACTIVITY_TYPE_REMOVE_USERS";
161
+ requestId: string;
162
+ organizationId: string;
163
+ intent: definitions["enforcementRemoveUsersIntent"];
164
+ };
165
+ activitySignMessageRequest: {
166
+ /** @enum {string} */
167
+ type: "ACTIVITY_TYPE_SIGN_MESSAGE";
168
+ requestId: string;
169
+ organizationId: string;
170
+ intent: definitions["enforcementSignMessageIntent"];
171
+ };
172
+ activitySignTransactionRequest: {
173
+ /** @enum {string} */
174
+ type: "ACTIVITY_TYPE_SIGN_TRANSACTION";
175
+ requestId: string;
176
+ organizationId: string;
177
+ intent: definitions["enforcementSignTransactionIntent"];
178
+ };
179
+ activityVote: {
180
+ id: string;
181
+ userId: string;
182
+ user: definitions["resourcesUser"];
183
+ activityId: string;
184
+ /** @enum {string} */
185
+ selection: "VOTE_SELECTION_APPROVED" | "VOTE_SELECTION_REJECTED";
186
+ message: string;
187
+ publicKey: string;
188
+ signature: string;
189
+ scheme: string;
190
+ createdAt: definitions["resourcesTimestamp"];
191
+ };
192
+ /**
193
+ * - CURVE_SECP256K1: The only curve we're planning to support short-term
194
+ * - CURVE_ED25519: Demonstrates an error case, we aren't going to support this curve at first
195
+ * @enum {string}
196
+ */
197
+ curveCurve: "CURVE_SECP256K1" | "CURVE_ED25519";
198
+ enforcementAcceptInvitationIntent: {
199
+ /** @inject_tag: validate:"required,uuid" */
200
+ invitationId: string;
201
+ /** @inject_tag: validate:"required,uuid" */
202
+ userId: string;
203
+ authenticator: definitions["enforcementAuthenticatorParams"];
204
+ };
205
+ enforcementAcceptInvitationResult: {
206
+ invitationId: string;
207
+ newUserId: string;
208
+ };
209
+ enforcementAddApiKeysIntent: {
210
+ /** @inject_tag: validate:"dive,required" */
211
+ apiKeys: definitions["enforcementApiKeyParams"][];
212
+ /** @inject_tag: validate:"required,uuid" */
213
+ userId: string;
214
+ };
215
+ enforcementAddApiKeysResult: {
216
+ apiKeyIds: string[];
217
+ };
218
+ enforcementAddAuthenticatorsIntent: {
219
+ /** @inject_tag: validate:"dive,required" */
220
+ authenticators: definitions["enforcementAuthenticatorParams"][];
221
+ /** @inject_tag: validate:"required,uuid" */
222
+ userId: string;
223
+ };
224
+ enforcementAddAuthenticatorsResult: {
225
+ authenticatorIds: string[];
226
+ };
227
+ enforcementAddKeysIntent: {
228
+ /** @inject_tag: validate:"dive,required" */
229
+ keys: definitions["enforcementKeyParams"][];
230
+ };
231
+ enforcementAddKeysResult: {
232
+ keys: definitions["resourcesExternalKey"][];
233
+ };
234
+ enforcementAddPolicyIntent: {
235
+ /** @inject_tag: validate:"required,max=40" */
236
+ label: string;
237
+ /** @inject_tag: validate:"required,dive,required" */
238
+ selectors: definitions["resourcesSelector"][];
239
+ effect: definitions["policyEffect"];
240
+ /** @inject_tag: validate:"required,max=256" */
241
+ notes: string;
242
+ };
243
+ enforcementAddPolicyResult: {
244
+ newPolicyId: string;
245
+ };
246
+ enforcementAddTagIntent: {
247
+ /** @inject_tag: validate:"required,max=20" */
248
+ label: string;
249
+ tagType: definitions["resourcesTagType"];
250
+ /** @inject_tag: validate:"dive,uuid" */
251
+ resourceIds: string[];
252
+ };
253
+ enforcementAddTagResult: {
254
+ tagId: string;
255
+ tagType: definitions["resourcesTagType"];
256
+ resourceIds: string[];
257
+ };
258
+ enforcementAddUsersIntent: {
259
+ /** @inject_tag: validate:"required,dive,required" */
260
+ users: definitions["enforcementUserParams"][];
261
+ };
262
+ enforcementAddUsersResult: {
263
+ userIds: string[];
264
+ };
265
+ enforcementApiKeyParams: {
266
+ /** @inject_tag: validate:"required,max=40" */
267
+ label: string;
268
+ /** @inject_tag: validate:"hexadecimal,len=66" */
269
+ publicKey: string;
270
+ /** @inject_tag: "required,dive,uuid" */
271
+ tags: string[];
272
+ };
273
+ enforcementApproveActivityIntent: {
274
+ /** @inject_tag: validate:"required" */
275
+ fingerprint: string;
276
+ };
277
+ enforcementAuthenticatorParams: {
278
+ /** @inject_tag: validate:"required,max=40" */
279
+ label: string;
280
+ /** @inject_tag: validate:"required,uuid" */
281
+ userId: string;
282
+ attestation: definitions["webauthnPublicKeyCredentialWithAttestation"];
283
+ /** @inject_tag: validate:"required,max=256" */
284
+ challenge: string;
285
+ /** @inject_tag: "required,dive,uuid" */
286
+ tags: string[];
287
+ };
288
+ enforcementCreateInvitationsIntent: {
289
+ /** @inject_tag: validate:"required,dive,required" */
290
+ invitations: definitions["enforcementInvitationParams"][];
291
+ };
292
+ enforcementCreateInvitationsResult: {
293
+ invitationIds: string[];
294
+ };
295
+ enforcementCreateOrganizationIntent: {
296
+ /** @inject_tag: validate:"required,max=40" */
297
+ name: string;
298
+ /** @inject_tag: validate:"required,email" */
299
+ rootEmail: string;
300
+ rootAuthenticator: definitions["enforcementAuthenticatorParams"];
301
+ /** @inject_tag: validate:"uuid" */
302
+ rootUserUuid?: string;
303
+ };
304
+ enforcementCreateOrganizationResult: {
305
+ newOrgId: string;
306
+ };
307
+ /** TODO(tim) - is this still needed? */
308
+ enforcementHeartbeatIntent: {
309
+ [key: string]: unknown;
310
+ };
311
+ enforcementHeartbeatResult: {
312
+ [key: string]: unknown;
313
+ };
314
+ enforcementIntent: {
315
+ createOrganizationIntent: definitions["enforcementCreateOrganizationIntent"];
316
+ heartbeatIntent?: definitions["enforcementHeartbeatIntent"];
317
+ addAuthenticatorsIntent?: definitions["enforcementAddAuthenticatorsIntent"];
318
+ addUsersIntent?: definitions["enforcementAddUsersIntent"];
319
+ addKeysIntent?: definitions["enforcementAddKeysIntent"];
320
+ signMessageIntent?: definitions["enforcementSignMessageIntent"];
321
+ createInvitationsIntent?: definitions["enforcementCreateInvitationsIntent"];
322
+ acceptInvitationIntent?: definitions["enforcementAcceptInvitationIntent"];
323
+ addPolicyIntent?: definitions["enforcementAddPolicyIntent"];
324
+ removeKeyIntent?: definitions["enforcementRemoveKeyIntent"];
325
+ removeUsersIntent?: definitions["enforcementRemoveUsersIntent"];
326
+ removeAuthenticatorsIntent?: definitions["enforcementRemoveAuthenticatorsIntent"];
327
+ removeInvitationIntent?: definitions["enforcementRemoveInvitationIntent"];
328
+ removeOrganizationIntent?: definitions["enforcementRemoveOrganizationIntent"];
329
+ removePolicyIntent?: definitions["enforcementRemovePolicyIntent"];
330
+ addTagIntent?: definitions["enforcementAddTagIntent"];
331
+ removeTagsIntent?: definitions["enforcementRemoveTagsIntent"];
332
+ signTransactionIntent?: definitions["enforcementSignTransactionIntent"];
333
+ addApiKeysIntent?: definitions["enforcementAddApiKeysIntent"];
334
+ removeApiKeysIntent?: definitions["enforcementRemoveApiKeysIntent"];
335
+ approveActivityIntent?: definitions["enforcementApproveActivityIntent"];
336
+ rejectActivityIntent?: definitions["enforcementRejectActivityIntent"];
337
+ };
338
+ enforcementInvitationParams: {
339
+ /** @inject_tag: validate:"required,max=40" */
340
+ receiverAlias: string;
341
+ /** @inject_tag: validate:"required,email" */
342
+ receiverEmail: string;
343
+ /** @inject_tag: validate:"dive,uuid" */
344
+ receiverTags: string[];
345
+ accessType: definitions["resourcesAccessType"];
346
+ /** @inject_tag: validate:"required,uuid" */
347
+ senderUserId: string;
348
+ };
349
+ enforcementKeyParams: {
350
+ /** @inject_tag: validate:"required,max=40" */
351
+ label: string;
352
+ curve: definitions["curveCurve"];
353
+ /** @inject_tag: validate:"dive,uuid" */
354
+ tags: string[];
355
+ /** @inject_tag: validate:"required" */
356
+ addressFormats: definitions["resourcesAddressFormat"][];
357
+ };
358
+ enforcementRejectActivityIntent: {
359
+ /** @inject_tag: validate:"required" */
360
+ fingerprint: string;
361
+ };
362
+ enforcementRemoveApiKeysIntent: {
363
+ /** @inject_tag: validate:"required,uuid" */
364
+ userId: string;
365
+ /** @inject_tag: validate:"required,dive,required,uuid" */
366
+ apiKeyIds: string[];
367
+ };
368
+ enforcementRemoveApiKeysResult: {
369
+ apiKeyIds: string[];
370
+ };
371
+ enforcementRemoveAuthenticatorsIntent: {
372
+ /** @inject_tag: validate:"required,uuid" */
373
+ userId: string;
374
+ /** @inject_tag: validate:"required,div,required,uuid" */
375
+ authenticatorIds: string[];
376
+ };
377
+ enforcementRemoveAuthenticatorsResult: {
378
+ authenticatorIds: string[];
379
+ };
380
+ enforcementRemoveInvitationIntent: {
381
+ /** @inject_tag: validate:"required,uuid" */
382
+ invitationId: string;
383
+ };
384
+ enforcementRemoveInvitationResult: {
385
+ invitationId: string;
386
+ };
387
+ enforcementRemoveKeyIntent: {
388
+ /** @inject_tag: validate:"required,uuid" */
389
+ keyId: string;
390
+ };
391
+ enforcementRemoveKeyResult: {
392
+ keyId: string;
393
+ };
394
+ enforcementRemoveOrganizationIntent: {
395
+ /** @inject_tag: validate:"required,uuid" */
396
+ organizationId: string;
397
+ };
398
+ enforcementRemoveOrganizationResult: {
399
+ organizationId: string;
400
+ };
401
+ enforcementRemovePolicyIntent: {
402
+ /** @inject_tag: validate:"required,uuid" */
403
+ policyId: string;
404
+ };
405
+ enforcementRemovePolicyResult: {
406
+ policyId: string;
407
+ };
408
+ enforcementRemoveTagsIntent: {
409
+ /** @inject_tag: validate:"required,dive,required,uuid" */
410
+ tagIds: string[];
411
+ tagType: definitions["resourcesTagType"];
412
+ };
413
+ enforcementRemoveTagsResult: {
414
+ tagIds: string[];
415
+ tagType: definitions["resourcesTagType"];
416
+ resourceIds: string[];
417
+ };
418
+ enforcementRemoveUsersIntent: {
419
+ /** @inject_tag: validate:"required,dive,required,uuid" */
420
+ userIds: string[];
421
+ };
422
+ enforcementRemoveUsersResult: {
423
+ userIds: string[];
424
+ };
425
+ enforcementResult: {
426
+ createOrganizationResult?: definitions["enforcementCreateOrganizationResult"];
427
+ heartbeatResult?: definitions["enforcementHeartbeatResult"];
428
+ addAuthenticatorsResult?: definitions["enforcementAddAuthenticatorsResult"];
429
+ addUsersResult?: definitions["enforcementAddUsersResult"];
430
+ addKeysResult?: definitions["enforcementAddKeysResult"];
431
+ createInvitationsResult?: definitions["enforcementCreateInvitationsResult"];
432
+ acceptInvitationResult?: definitions["enforcementAcceptInvitationResult"];
433
+ signMessageResult?: definitions["enforcementSignMessageResult"];
434
+ addPolicyResult?: definitions["enforcementAddPolicyResult"];
435
+ removeKeyResult?: definitions["enforcementRemoveKeyResult"];
436
+ removeUsersResult?: definitions["enforcementRemoveUsersResult"];
437
+ removeAuthenticatorsResult?: definitions["enforcementRemoveAuthenticatorsResult"];
438
+ removeInvitationResult?: definitions["enforcementRemoveInvitationResult"];
439
+ removeOrganizationResult?: definitions["enforcementRemoveOrganizationResult"];
440
+ removePolicyResult?: definitions["enforcementRemovePolicyResult"];
441
+ addTagResult?: definitions["enforcementAddTagResult"];
442
+ removeTagsResult?: definitions["enforcementRemoveTagsResult"];
443
+ signTransactionResult?: definitions["enforcementSignTransactionResult"];
444
+ removeApiKeysResult?: definitions["enforcementRemoveApiKeysResult"];
445
+ addApiKeysResult?: definitions["enforcementAddApiKeysResult"];
446
+ };
447
+ enforcementSignMessageIntent: {
448
+ /** @inject_tag: validate:"required,uuid" */
449
+ organizationId: string;
450
+ /** @inject_tag: validate:"required,uuid" */
451
+ keyId: string;
452
+ /** @inject_tag: validate:"required" */
453
+ payload: string;
454
+ encoding: definitions["signaturePayloadEncoding"];
455
+ hashFunction: definitions["signatureHashFunction"];
456
+ };
457
+ enforcementSignMessageResult: {
458
+ r: string;
459
+ s: string;
460
+ v: string;
461
+ };
462
+ enforcementSignTransactionIntent: {
463
+ /** @inject_tag: validate:"required,uuid" */
464
+ organizationId: string;
465
+ /** @inject_tag: validate:"required,uuid" */
466
+ keyId: string;
467
+ /** @inject_tag: validate:"required" */
468
+ unsignedTransaction: string;
469
+ type: definitions["resourcesTransactionType"];
470
+ };
471
+ enforcementSignTransactionResult: {
472
+ signedTransaction: string;
473
+ };
474
+ enforcementUserParams: {
475
+ /** @inject_tag: validate:"required,max=40" */
476
+ alias: string;
477
+ /** @inject_tag: validate:"email" */
478
+ email?: string;
479
+ accessType: definitions["resourcesAccessType"];
480
+ /** @inject_tag: validate:"dive,uuid" */
481
+ apiKeys: definitions["enforcementApiKeyParams"][];
482
+ /** @inject_tag: validate:"dive" */
483
+ authenticators: definitions["enforcementAuthenticatorParams"][];
484
+ /** @inject_tag: validate:"dive,uuid" */
485
+ tags: string[];
486
+ };
487
+ /**
488
+ * @description This proto definition dictates the encoding of organization data blobs in our database
489
+ * It does so indirectly: we use this message to derive Rust types. These Rust types are
490
+ * then used to serialize to, and deserialize from, JSON.
491
+ */
492
+ organization_dataOrganizationData: {
493
+ version?: string;
494
+ uuid?: string;
495
+ name?: string;
496
+ users?: definitions["resourcesUser"][];
497
+ policies?: definitions["resourcesPolicy"][];
498
+ keys?: definitions["resourcesKey"][];
499
+ invitations?: definitions["resourcesInvitation"][];
500
+ tags?: definitions["resourcesTag"][];
501
+ deletedUsers?: definitions["resourcesUser"][];
502
+ deletedPolicies?: definitions["resourcesPolicy"][];
503
+ deletedKeys?: definitions["resourcesKey"][];
504
+ deletedInvitations?: definitions["resourcesInvitation"][];
505
+ deletedApiKeys?: definitions["resourcesApiKey"][];
506
+ deletedAuthenticators?: definitions["resourcesAuthenticator"][];
507
+ deletedTags?: definitions["resourcesTag"][];
508
+ };
509
+ /** @enum {string} */
510
+ policyEffect: "EFFECT_ALLOW" | "EFFECT_DENY";
511
+ protobufAny: {
512
+ "@type"?: string;
513
+ } & {
514
+ [key: string]: unknown;
515
+ };
516
+ publicv1CreateApiKeysRequest: {
517
+ request: definitions["activityCreateApiKeysRequest"];
518
+ };
519
+ publicv1CreateInvitationsRequest: {
520
+ request: definitions["activityCreateInvitationsRequest"];
521
+ };
522
+ publicv1CreateKeysRequest: {
523
+ request: definitions["activityCreateKeysRequest"];
524
+ };
525
+ publicv1CreatePolicyRequest: {
526
+ request: definitions["activityCreatePolicyRequest"];
527
+ };
528
+ publicv1CreateUsersRequest: {
529
+ request: definitions["activityCreateUsersRequest"];
530
+ };
531
+ publicv1DeleteApiKeysRequest: {
532
+ request: definitions["activityDeleteApiKeysRequest"];
533
+ };
534
+ publicv1DeleteInvitationRequest: {
535
+ request: definitions["activityDeleteInvitationRequest"];
536
+ };
537
+ publicv1DeletePolicyRequest: {
538
+ request: definitions["activityDeletePolicyRequest"];
539
+ };
540
+ publicv1DeleteUsersRequest: {
541
+ request: definitions["activityDeleteUsersRequest"];
542
+ };
543
+ publicv1SignMessageRequest: {
544
+ request: definitions["activitySignMessageRequest"];
545
+ };
546
+ publicv1SignTransactionRequest: {
547
+ request: definitions["activitySignTransactionRequest"];
548
+ };
549
+ /** @enum {string} */
550
+ resourcesAccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
551
+ resourcesAddress: {
552
+ format?: definitions["resourcesAddressFormat"];
553
+ address?: string;
554
+ };
555
+ /**
556
+ * - ADDRESS_FORMAT_UNCOMPRESSED: 04<X_COORDINATE><Y_COORDINATE>
557
+ * - ADDRESS_FORMAT_COMPRESSED: 02 or 03, followed by the X coordinate
558
+ * - ADDRESS_FORMAT_ETHEREUM: Your standard Ethereum address (0x...). We apply EIP55 casing.
559
+ * - ADDRESS_FORMAT_BITCOIN_P2PKH: Bitoin formats. See https://en.bitcoin.it/wiki/List_of_address_prefixes
560
+ * @enum {string}
561
+ */
562
+ resourcesAddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_BITCOIN_P2PKH" | "ADDRESS_FORMAT_BITCOIN_P2PKH_TESTNET";
563
+ resourcesApiKey: {
564
+ credential: definitions["resourcesCredential"];
565
+ tags: string[];
566
+ uuid: string;
567
+ label: string;
568
+ createdAt: definitions["resourcesTimestamp"];
569
+ updatedAt: definitions["resourcesTimestamp"];
570
+ };
571
+ resourcesAuthenticator: {
572
+ transports: definitions["webauthnAuthenticatorTransport"][];
573
+ attestationType: string;
574
+ aaguid: string;
575
+ userId: string;
576
+ credentialId: string;
577
+ model: string;
578
+ credential: definitions["resourcesCredential"];
579
+ uuid: string;
580
+ label: string;
581
+ createdAt: definitions["resourcesTimestamp"];
582
+ updatedAt: definitions["resourcesTimestamp"];
583
+ tags: string[];
584
+ };
585
+ resourcesCredential: {
586
+ publicKey: string;
587
+ scheme: definitions["signatureSignatureScheme"];
588
+ };
589
+ /** Key with data that is safe to share publicly */
590
+ resourcesExternalKey: {
591
+ uuid: string;
592
+ publicKey: string;
593
+ label: string;
594
+ curve: definitions["curveCurve"];
595
+ addresses: definitions["resourcesAddress"][];
596
+ tags: string[];
597
+ };
598
+ resourcesInvitation: {
599
+ uuid: string;
600
+ receiverAlias: string;
601
+ receiverEmail: string;
602
+ receiverTags: string[];
603
+ accessType: definitions["resourcesAccessType"];
604
+ status: definitions["resourcesInvitationStatus"];
605
+ createdAt: definitions["resourcesTimestamp"];
606
+ updatedAt: definitions["resourcesTimestamp"];
607
+ senderUserId: string;
608
+ };
609
+ /** @enum {string} */
610
+ resourcesInvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
611
+ resourcesKey: {
612
+ uuid: string;
613
+ /** public key (!= address) */
614
+ publicKey: string;
615
+ /** encrypted private key */
616
+ encryptedPrivateKey: string;
617
+ label: string;
618
+ curve: definitions["curveCurve"];
619
+ addresses: definitions["resourcesAddress"][];
620
+ tags: string[];
621
+ createdAt: definitions["resourcesTimestamp"];
622
+ updatedAt: definitions["resourcesTimestamp"];
623
+ };
624
+ /** @enum {string} */
625
+ resourcesOperator: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL";
626
+ resourcesPolicy: {
627
+ uuid: string;
628
+ label: string;
629
+ effect: definitions["policyEffect"];
630
+ selectors: definitions["resourcesSelector"][];
631
+ createdAt: definitions["resourcesTimestamp"];
632
+ updatedAt: definitions["resourcesTimestamp"];
633
+ notes: string;
634
+ };
635
+ resourcesSelector: {
636
+ subject: string;
637
+ operator: definitions["resourcesOperator"];
638
+ target: string;
639
+ };
640
+ resourcesTag: {
641
+ uuid: string;
642
+ label: string;
643
+ tagType: definitions["resourcesTagType"];
644
+ createdAt: definitions["resourcesTimestamp"];
645
+ updatedAt: definitions["resourcesTimestamp"];
646
+ };
647
+ /** @enum {string} */
648
+ resourcesTagType: "TAG_TYPE_USER" | "TAG_TYPE_API_KEY" | "TAG_TYPE_KEY" | "TAG_TYPE_AUTHENTICATOR";
649
+ /** Need borsch serialization, so can't use the internal timestamp */
650
+ resourcesTimestamp: {
651
+ seconds: string;
652
+ nanos: string;
653
+ };
654
+ /**
655
+ * - TRANSACTION_TYPE_ETHEREUM: Unsigned Ethereum transaction, RLP-encoded and hex-encoded
656
+ * @enum {string}
657
+ */
658
+ resourcesTransactionType: "TRANSACTION_TYPE_ETHEREUM";
659
+ resourcesUser: {
660
+ uuid: string;
661
+ alias: string;
662
+ /** some users do not have emails (programmatic users) */
663
+ email?: string;
664
+ accessType: definitions["resourcesAccessType"];
665
+ authenticators: definitions["resourcesAuthenticator"][];
666
+ apiKeys: definitions["resourcesApiKey"][];
667
+ tags: string[];
668
+ createdAt: definitions["resourcesTimestamp"];
669
+ updatedAt: definitions["resourcesTimestamp"];
670
+ };
671
+ rpcStatus: {
672
+ /** Format: int32 */
673
+ code?: number;
674
+ message?: string;
675
+ details?: definitions["protobufAny"][];
676
+ };
677
+ /**
678
+ * @description - HASH_FUNCTION_UNSPECIFIED: Default value if hash function is not set explicitly
679
+ * - HASH_FUNCTION_NO_OP: No-op function. Useful if you want to pass raw bytes to sign
680
+ * - HASH_FUNCTION_SHA256: Standard SHA-256
681
+ * - HASH_FUNCTION_KECCAK256: Keccak-256 (not the same as NIST SHA-3!).
682
+ * This is the hash function used in the Ethereum ecosystem.
683
+ * @enum {string}
684
+ */
685
+ signatureHashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256";
686
+ /**
687
+ * - PAYLOAD_ENCODING_UNSPECIFIED: Default value if payload encoding is not set explicitly
688
+ * - PAYLOAD_ENCODING_HEXADECIMAL: Payload is encoded in hexadecimal
689
+ * We accept 0x-prefixed or non-0x prefixed payloads.
690
+ * We accept any casing (uppercase, lowercase, or mixed)
691
+ * - PAYLOAD_ENCODING_TEXT_UTF8: Payload is encoded as utf-8 text
692
+ * Will be converted to bytes for signature with Rust's standard String.as_bytes()
693
+ * @enum {string}
694
+ */
695
+ signaturePayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
696
+ /**
697
+ * - SIGNATURE_SCHEME_TK_API_P256: Scheme used for Turnkey's public API
698
+ * - SIGNATURE_SCHEME_TK_WEBAUTHN: Scheme used on our UI when users sign with Webauthn
699
+ * Public keys are encoded using COSE (https://www.w3.org/TR/webauthn-2/#sctn-encoded-credPubKey-examples)
700
+ * - SIGNATURE_SCHEME_TK_QUORUM_P256: Scheme used by our enclave applications
701
+ * @enum {string}
702
+ */
703
+ signatureSignatureScheme: "SIGNATURE_SCHEME_TK_API_P256" | "SIGNATURE_SCHEME_TK_WEBAUTHN" | "SIGNATURE_SCHEME_TK_QUORUM_P256";
704
+ v1ActivityResponse: {
705
+ activity: definitions["activityActivity"];
706
+ };
707
+ v1GetActivityRequest: {
708
+ organizationId: string;
709
+ activityId: string;
710
+ };
711
+ v1GetKeyRequest: {
712
+ organizationId: string;
713
+ keyId: string;
714
+ };
715
+ v1GetKeyResponse: {
716
+ key: definitions["resourcesExternalKey"];
717
+ };
718
+ v1GetKeysRequest: {
719
+ organizationId: string;
720
+ };
721
+ v1GetKeysResponse: {
722
+ keys: definitions["resourcesExternalKey"][];
723
+ };
724
+ v1GetOrganizationRequest: {
725
+ organizationId: string;
726
+ };
727
+ v1GetOrganizationResponse: {
728
+ organizationData: definitions["organization_dataOrganizationData"];
729
+ };
730
+ v1GetUserRequest: {
731
+ organizationId: string;
732
+ userId: string;
733
+ };
734
+ v1GetUserResponse: {
735
+ user: definitions["resourcesUser"];
736
+ };
737
+ v1GetUsersRequest: {
738
+ organizationId: string;
739
+ };
740
+ v1GetUsersResponse: {
741
+ users: definitions["resourcesUser"][];
742
+ };
743
+ v1GetWhoamiRequest: {
744
+ organizationId: string;
745
+ };
746
+ v1GetWhoamiResponse: {
747
+ organizationId: string;
748
+ organizationName: string;
749
+ userId: string;
750
+ username: string;
751
+ };
752
+ webauthnAuthenticatorAttestationResponse: {
753
+ /** ENCODING: base64url */
754
+ clientDataJson: string;
755
+ /** ENCODING: base64url */
756
+ attestationObject: string;
757
+ transports?: definitions["webauthnAuthenticatorTransport"][];
758
+ /** @enum {string} */
759
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
760
+ };
761
+ /** @enum {string} */
762
+ webauthnAuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
763
+ webauthnCredPropsAuthenticationExtensionsClientOutputs: {
764
+ rk: boolean;
765
+ };
766
+ webauthnPublicKeyCredentialWithAttestation: {
767
+ id: string;
768
+ /**
769
+ * Must be literal string "public-key"
770
+ * @enum {string}
771
+ */
772
+ type: "public-key";
773
+ /** ENCODING: base64url */
774
+ rawId: string;
775
+ /** @enum {string} */
776
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
777
+ response: definitions["webauthnAuthenticatorAttestationResponse"];
778
+ clientExtensionResults: definitions["webauthnSimpleClientExtensionResults"];
779
+ };
780
+ webauthnSimpleClientExtensionResults: {
781
+ appid?: boolean;
782
+ appidExclude?: boolean;
783
+ credProps?: definitions["webauthnCredPropsAuthenticationExtensionsClientOutputs"];
784
+ };
785
+ };
786
+ export type operations = {
787
+ /** Get details about an Activity */
788
+ PublicApiService_GetActivity: {
789
+ parameters: {
790
+ body: {
791
+ body: definitions["v1GetActivityRequest"];
792
+ };
793
+ };
794
+ responses: {
795
+ /** A successful response. */
796
+ 200: {
797
+ schema: definitions["v1ActivityResponse"];
798
+ };
799
+ /** Returned when the user does not have permission to access the resource. */
800
+ 403: {
801
+ schema: unknown;
802
+ };
803
+ /** Returned when the resource does not exist. */
804
+ 404: {
805
+ schema: string;
806
+ };
807
+ /** An unexpected error response. */
808
+ default: {
809
+ schema: definitions["rpcStatus"];
810
+ };
811
+ };
812
+ };
813
+ /** Get details about a Private Key */
814
+ PublicApiService_GetKey: {
815
+ parameters: {
816
+ body: {
817
+ body: definitions["v1GetKeyRequest"];
818
+ };
819
+ };
820
+ responses: {
821
+ /** A successful response. */
822
+ 200: {
823
+ schema: definitions["v1GetKeyResponse"];
824
+ };
825
+ /** Returned when the user does not have permission to access the resource. */
826
+ 403: {
827
+ schema: unknown;
828
+ };
829
+ /** Returned when the resource does not exist. */
830
+ 404: {
831
+ schema: string;
832
+ };
833
+ /** An unexpected error response. */
834
+ default: {
835
+ schema: definitions["rpcStatus"];
836
+ };
837
+ };
838
+ };
839
+ /** Get details about an Organization */
840
+ PublicApiService_GetOrganization: {
841
+ parameters: {
842
+ body: {
843
+ body: definitions["v1GetOrganizationRequest"];
844
+ };
845
+ };
846
+ responses: {
847
+ /** A successful response. */
848
+ 200: {
849
+ schema: definitions["v1GetOrganizationResponse"];
850
+ };
851
+ /** Returned when the user does not have permission to access the resource. */
852
+ 403: {
853
+ schema: unknown;
854
+ };
855
+ /** Returned when the resource does not exist. */
856
+ 404: {
857
+ schema: string;
858
+ };
859
+ /** An unexpected error response. */
860
+ default: {
861
+ schema: definitions["rpcStatus"];
862
+ };
863
+ };
864
+ };
865
+ /** Get details about a User */
866
+ PublicApiService_GetUser: {
867
+ parameters: {
868
+ body: {
869
+ body: definitions["v1GetUserRequest"];
870
+ };
871
+ };
872
+ responses: {
873
+ /** A successful response. */
874
+ 200: {
875
+ schema: definitions["v1GetUserResponse"];
876
+ };
877
+ /** Returned when the user does not have permission to access the resource. */
878
+ 403: {
879
+ schema: unknown;
880
+ };
881
+ /** Returned when the resource does not exist. */
882
+ 404: {
883
+ schema: string;
884
+ };
885
+ /** An unexpected error response. */
886
+ default: {
887
+ schema: definitions["rpcStatus"];
888
+ };
889
+ };
890
+ };
891
+ /** List all Private Keys within an Organization */
892
+ PublicApiService_GetKeys: {
893
+ parameters: {
894
+ body: {
895
+ body: definitions["v1GetKeysRequest"];
896
+ };
897
+ };
898
+ responses: {
899
+ /** A successful response. */
900
+ 200: {
901
+ schema: definitions["v1GetKeysResponse"];
902
+ };
903
+ /** Returned when the user does not have permission to access the resource. */
904
+ 403: {
905
+ schema: unknown;
906
+ };
907
+ /** Returned when the resource does not exist. */
908
+ 404: {
909
+ schema: string;
910
+ };
911
+ /** An unexpected error response. */
912
+ default: {
913
+ schema: definitions["rpcStatus"];
914
+ };
915
+ };
916
+ };
917
+ /** List all Users within an Organization */
918
+ PublicApiService_GetUsers: {
919
+ parameters: {
920
+ body: {
921
+ body: definitions["v1GetUsersRequest"];
922
+ };
923
+ };
924
+ responses: {
925
+ /** A successful response. */
926
+ 200: {
927
+ schema: definitions["v1GetUsersResponse"];
928
+ };
929
+ /** Returned when the user does not have permission to access the resource. */
930
+ 403: {
931
+ schema: unknown;
932
+ };
933
+ /** Returned when the resource does not exist. */
934
+ 404: {
935
+ schema: string;
936
+ };
937
+ /** An unexpected error response. */
938
+ default: {
939
+ schema: definitions["rpcStatus"];
940
+ };
941
+ };
942
+ };
943
+ /** Get basic information about your current API user and your organization */
944
+ PublicApiService_GetWhoami: {
945
+ parameters: {
946
+ body: {
947
+ body: definitions["v1GetWhoamiRequest"];
948
+ };
949
+ };
950
+ responses: {
951
+ /** A successful response. */
952
+ 200: {
953
+ schema: definitions["v1GetWhoamiResponse"];
954
+ };
955
+ /** Returned when the user does not have permission to access the resource. */
956
+ 403: {
957
+ schema: unknown;
958
+ };
959
+ /** Returned when the resource does not exist. */
960
+ 404: {
961
+ schema: string;
962
+ };
963
+ /** An unexpected error response. */
964
+ default: {
965
+ schema: definitions["rpcStatus"];
966
+ };
967
+ };
968
+ };
969
+ /** Add api keys to an existing User */
970
+ PublicApiService_CreateApiKeys: {
971
+ parameters: {
972
+ body: {
973
+ body: definitions["publicv1CreateApiKeysRequest"];
974
+ };
975
+ };
976
+ responses: {
977
+ /** A successful response. */
978
+ 200: {
979
+ schema: definitions["v1ActivityResponse"];
980
+ };
981
+ /** Returned when the user does not have permission to access the resource. */
982
+ 403: {
983
+ schema: unknown;
984
+ };
985
+ /** Returned when the resource does not exist. */
986
+ 404: {
987
+ schema: string;
988
+ };
989
+ /** An unexpected error response. */
990
+ default: {
991
+ schema: definitions["rpcStatus"];
992
+ };
993
+ };
994
+ };
995
+ /** Create Invitations to join an existing Organization */
996
+ PublicApiService_CreateInvitations: {
997
+ parameters: {
998
+ body: {
999
+ body: definitions["publicv1CreateInvitationsRequest"];
1000
+ };
1001
+ };
1002
+ responses: {
1003
+ /** A successful response. */
1004
+ 200: {
1005
+ schema: definitions["v1ActivityResponse"];
1006
+ };
1007
+ /** Returned when the user does not have permission to access the resource. */
1008
+ 403: {
1009
+ schema: unknown;
1010
+ };
1011
+ /** Returned when the resource does not exist. */
1012
+ 404: {
1013
+ schema: string;
1014
+ };
1015
+ /** An unexpected error response. */
1016
+ default: {
1017
+ schema: definitions["rpcStatus"];
1018
+ };
1019
+ };
1020
+ };
1021
+ /** Create new Private Keys */
1022
+ PublicApiService_CreateKeys: {
1023
+ parameters: {
1024
+ body: {
1025
+ body: definitions["publicv1CreateKeysRequest"];
1026
+ };
1027
+ };
1028
+ responses: {
1029
+ /** A successful response. */
1030
+ 200: {
1031
+ schema: definitions["v1ActivityResponse"];
1032
+ };
1033
+ /** Returned when the user does not have permission to access the resource. */
1034
+ 403: {
1035
+ schema: unknown;
1036
+ };
1037
+ /** Returned when the resource does not exist. */
1038
+ 404: {
1039
+ schema: string;
1040
+ };
1041
+ /** An unexpected error response. */
1042
+ default: {
1043
+ schema: definitions["rpcStatus"];
1044
+ };
1045
+ };
1046
+ };
1047
+ /** Create a new Policy */
1048
+ PublicApiService_CreatePolicy: {
1049
+ parameters: {
1050
+ body: {
1051
+ body: definitions["publicv1CreatePolicyRequest"];
1052
+ };
1053
+ };
1054
+ responses: {
1055
+ /** A successful response. */
1056
+ 200: {
1057
+ schema: definitions["v1ActivityResponse"];
1058
+ };
1059
+ /** Returned when the user does not have permission to access the resource. */
1060
+ 403: {
1061
+ schema: unknown;
1062
+ };
1063
+ /** Returned when the resource does not exist. */
1064
+ 404: {
1065
+ schema: string;
1066
+ };
1067
+ /** An unexpected error response. */
1068
+ default: {
1069
+ schema: definitions["rpcStatus"];
1070
+ };
1071
+ };
1072
+ };
1073
+ /** Create new API Users */
1074
+ PublicApiService_CreateUsers: {
1075
+ parameters: {
1076
+ body: {
1077
+ body: definitions["publicv1CreateUsersRequest"];
1078
+ };
1079
+ };
1080
+ responses: {
1081
+ /** A successful response. */
1082
+ 200: {
1083
+ schema: definitions["v1ActivityResponse"];
1084
+ };
1085
+ /** Returned when the user does not have permission to access the resource. */
1086
+ 403: {
1087
+ schema: unknown;
1088
+ };
1089
+ /** Returned when the resource does not exist. */
1090
+ 404: {
1091
+ schema: string;
1092
+ };
1093
+ /** An unexpected error response. */
1094
+ default: {
1095
+ schema: definitions["rpcStatus"];
1096
+ };
1097
+ };
1098
+ };
1099
+ /** Remove api keys from a User */
1100
+ PublicApiService_DeleteApiKeys: {
1101
+ parameters: {
1102
+ body: {
1103
+ body: definitions["publicv1DeleteApiKeysRequest"];
1104
+ };
1105
+ };
1106
+ responses: {
1107
+ /** A successful response. */
1108
+ 200: {
1109
+ schema: definitions["v1ActivityResponse"];
1110
+ };
1111
+ /** Returned when the user does not have permission to access the resource. */
1112
+ 403: {
1113
+ schema: unknown;
1114
+ };
1115
+ /** Returned when the resource does not exist. */
1116
+ 404: {
1117
+ schema: string;
1118
+ };
1119
+ /** An unexpected error response. */
1120
+ default: {
1121
+ schema: definitions["rpcStatus"];
1122
+ };
1123
+ };
1124
+ };
1125
+ /** Delete an existing Invitation */
1126
+ PublicApiService_DeleteInvitation: {
1127
+ parameters: {
1128
+ body: {
1129
+ body: definitions["publicv1DeleteInvitationRequest"];
1130
+ };
1131
+ };
1132
+ responses: {
1133
+ /** A successful response. */
1134
+ 200: {
1135
+ schema: definitions["v1ActivityResponse"];
1136
+ };
1137
+ /** Returned when the user does not have permission to access the resource. */
1138
+ 403: {
1139
+ schema: unknown;
1140
+ };
1141
+ /** Returned when the resource does not exist. */
1142
+ 404: {
1143
+ schema: string;
1144
+ };
1145
+ /** An unexpected error response. */
1146
+ default: {
1147
+ schema: definitions["rpcStatus"];
1148
+ };
1149
+ };
1150
+ };
1151
+ /** Delete an existing Policy */
1152
+ PublicApiService_DeletePolicy: {
1153
+ parameters: {
1154
+ body: {
1155
+ body: definitions["publicv1DeletePolicyRequest"];
1156
+ };
1157
+ };
1158
+ responses: {
1159
+ /** A successful response. */
1160
+ 200: {
1161
+ schema: definitions["v1ActivityResponse"];
1162
+ };
1163
+ /** Returned when the user does not have permission to access the resource. */
1164
+ 403: {
1165
+ schema: unknown;
1166
+ };
1167
+ /** Returned when the resource does not exist. */
1168
+ 404: {
1169
+ schema: string;
1170
+ };
1171
+ /** An unexpected error response. */
1172
+ default: {
1173
+ schema: definitions["rpcStatus"];
1174
+ };
1175
+ };
1176
+ };
1177
+ /** Deactivate an existing User */
1178
+ PublicApiService_DeleteUsers: {
1179
+ parameters: {
1180
+ body: {
1181
+ body: definitions["publicv1DeleteUsersRequest"];
1182
+ };
1183
+ };
1184
+ responses: {
1185
+ /** A successful response. */
1186
+ 200: {
1187
+ schema: definitions["v1ActivityResponse"];
1188
+ };
1189
+ /** Returned when the user does not have permission to access the resource. */
1190
+ 403: {
1191
+ schema: unknown;
1192
+ };
1193
+ /** Returned when the resource does not exist. */
1194
+ 404: {
1195
+ schema: string;
1196
+ };
1197
+ /** An unexpected error response. */
1198
+ default: {
1199
+ schema: definitions["rpcStatus"];
1200
+ };
1201
+ };
1202
+ };
1203
+ /** Sign a message with a Private Key */
1204
+ PublicApiService_SignMessage: {
1205
+ parameters: {
1206
+ body: {
1207
+ body: definitions["publicv1SignMessageRequest"];
1208
+ };
1209
+ };
1210
+ responses: {
1211
+ /** A successful response. */
1212
+ 200: {
1213
+ schema: definitions["v1ActivityResponse"];
1214
+ };
1215
+ /** Returned when the user does not have permission to access the resource. */
1216
+ 403: {
1217
+ schema: unknown;
1218
+ };
1219
+ /** Returned when the resource does not exist. */
1220
+ 404: {
1221
+ schema: string;
1222
+ };
1223
+ /** An unexpected error response. */
1224
+ default: {
1225
+ schema: definitions["rpcStatus"];
1226
+ };
1227
+ };
1228
+ };
1229
+ /** Sign a transaction with a Private Key */
1230
+ PublicApiService_SignTransaction: {
1231
+ parameters: {
1232
+ body: {
1233
+ body: definitions["publicv1SignTransactionRequest"];
1234
+ };
1235
+ };
1236
+ responses: {
1237
+ /** A successful response. */
1238
+ 200: {
1239
+ schema: definitions["v1ActivityResponse"];
1240
+ };
1241
+ /** Returned when the user does not have permission to access the resource. */
1242
+ 403: {
1243
+ schema: unknown;
1244
+ };
1245
+ /** Returned when the resource does not exist. */
1246
+ 404: {
1247
+ schema: string;
1248
+ };
1249
+ /** An unexpected error response. */
1250
+ default: {
1251
+ schema: definitions["rpcStatus"];
1252
+ };
1253
+ };
1254
+ };
1255
+ };
1256
+ export type external = {};
1257
+ //# sourceMappingURL=public_api.types.d.ts.map