@eide/foir-proto-ts 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { GetIntegrationCredentialRequest, GetIntegrationCredentialResponse, WriteIntegrationCredentialRequest, WriteIntegrationCredentialResponse } from "./integrations_pbjs";
|
|
6
|
+
import { GetIntegrationCredentialRequest, GetIntegrationCredentialResponse, IssueExchangeTicketRequest, IssueExchangeTicketResponse, WriteIntegrationCredentialRequest, WriteIntegrationCredentialResponse } from "./integrations_pbjs";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -42,3 +42,26 @@ export declare const IntegrationCredentialsService: {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* @generated from service integrations.v1.IntegrationAuthService
|
|
47
|
+
*/
|
|
48
|
+
export declare const IntegrationAuthService: {
|
|
49
|
+
readonly typeName: "integrations.v1.IntegrationAuthService",
|
|
50
|
+
readonly methods: {
|
|
51
|
+
/**
|
|
52
|
+
* Create a single-use exchange ticket for the given (project, integration)
|
|
53
|
+
* with capability credentials:write. The admin caller must have
|
|
54
|
+
* TENANT_OWNER / PROJECT_ADMIN (or be a platform admin) for the target
|
|
55
|
+
* project. Emits an auth_events row of kind ticket_issue.
|
|
56
|
+
*
|
|
57
|
+
* @generated from rpc integrations.v1.IntegrationAuthService.IssueExchangeTicket
|
|
58
|
+
*/
|
|
59
|
+
readonly issueExchangeTicket: {
|
|
60
|
+
readonly name: "IssueExchangeTicket",
|
|
61
|
+
readonly I: typeof IssueExchangeTicketRequest,
|
|
62
|
+
readonly O: typeof IssueExchangeTicketResponse,
|
|
63
|
+
readonly kind: MethodKind.Unary,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { GetIntegrationCredentialRequest, GetIntegrationCredentialResponse, WriteIntegrationCredentialRequest, WriteIntegrationCredentialResponse } from "./integrations_pbjs";
|
|
6
|
+
import { GetIntegrationCredentialRequest, GetIntegrationCredentialResponse, IssueExchangeTicketRequest, IssueExchangeTicketResponse, WriteIntegrationCredentialRequest, WriteIntegrationCredentialResponse } from "./integrations_pbjs";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -42,3 +42,26 @@ export const IntegrationCredentialsService = {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* @generated from service integrations.v1.IntegrationAuthService
|
|
47
|
+
*/
|
|
48
|
+
export const IntegrationAuthService = {
|
|
49
|
+
typeName: "integrations.v1.IntegrationAuthService",
|
|
50
|
+
methods: {
|
|
51
|
+
/**
|
|
52
|
+
* Create a single-use exchange ticket for the given (project, integration)
|
|
53
|
+
* with capability credentials:write. The admin caller must have
|
|
54
|
+
* TENANT_OWNER / PROJECT_ADMIN (or be a platform admin) for the target
|
|
55
|
+
* project. Emits an auth_events row of kind ticket_issue.
|
|
56
|
+
*
|
|
57
|
+
* @generated from rpc integrations.v1.IntegrationAuthService.IssueExchangeTicket
|
|
58
|
+
*/
|
|
59
|
+
issueExchangeTicket: {
|
|
60
|
+
name: "IssueExchangeTicket",
|
|
61
|
+
I: IssueExchangeTicketRequest,
|
|
62
|
+
O: IssueExchangeTicketResponse,
|
|
63
|
+
kind: MethodKind.Unary,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
@@ -513,6 +513,54 @@ export declare type WriteIntegrationCredentialResponse = Message<"integrations.v
|
|
|
513
513
|
*/
|
|
514
514
|
export declare const WriteIntegrationCredentialResponseSchema: GenMessage<WriteIntegrationCredentialResponse>;
|
|
515
515
|
|
|
516
|
+
/**
|
|
517
|
+
* @generated from message integrations.v1.IssueExchangeTicketRequest
|
|
518
|
+
*/
|
|
519
|
+
export declare type IssueExchangeTicketRequest = Message<"integrations.v1.IssueExchangeTicketRequest"> & {
|
|
520
|
+
/**
|
|
521
|
+
* @generated from field: string project_id = 1;
|
|
522
|
+
*/
|
|
523
|
+
projectId: string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: string integration_name = 2;
|
|
527
|
+
*/
|
|
528
|
+
integrationName: string;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Describes the message integrations.v1.IssueExchangeTicketRequest.
|
|
533
|
+
* Use `create(IssueExchangeTicketRequestSchema)` to create a new message.
|
|
534
|
+
*/
|
|
535
|
+
export declare const IssueExchangeTicketRequestSchema: GenMessage<IssueExchangeTicketRequest>;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @generated from message integrations.v1.IssueExchangeTicketResponse
|
|
539
|
+
*/
|
|
540
|
+
export declare type IssueExchangeTicketResponse = Message<"integrations.v1.IssueExchangeTicketResponse"> & {
|
|
541
|
+
/**
|
|
542
|
+
* Opaque single-use ticket id. Must be embedded in OAuth `state` and
|
|
543
|
+
* POSTed back by the middleware to /api/v1/auth/exchange-ticket.
|
|
544
|
+
*
|
|
545
|
+
* @generated from field: string ticket = 1;
|
|
546
|
+
*/
|
|
547
|
+
ticket: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Absolute expiry (10 minutes from issue). After this point the ticket
|
|
551
|
+
* is rejected even if it has not yet been redeemed.
|
|
552
|
+
*
|
|
553
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 2;
|
|
554
|
+
*/
|
|
555
|
+
expiresAt?: Timestamp;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Describes the message integrations.v1.IssueExchangeTicketResponse.
|
|
560
|
+
* Use `create(IssueExchangeTicketResponseSchema)` to create a new message.
|
|
561
|
+
*/
|
|
562
|
+
export declare const IssueExchangeTicketResponseSchema: GenMessage<IssueExchangeTicketResponse>;
|
|
563
|
+
|
|
516
564
|
/**
|
|
517
565
|
* Credential strategies the middleware uses when talking to the external
|
|
518
566
|
* service. Drives which authorization flow the admin UI renders.
|
|
@@ -682,3 +730,22 @@ export declare const IntegrationCredentialsService: GenService<{
|
|
|
682
730
|
},
|
|
683
731
|
}>;
|
|
684
732
|
|
|
733
|
+
/**
|
|
734
|
+
* @generated from service integrations.v1.IntegrationAuthService
|
|
735
|
+
*/
|
|
736
|
+
export declare const IntegrationAuthService: GenService<{
|
|
737
|
+
/**
|
|
738
|
+
* Create a single-use exchange ticket for the given (project, integration)
|
|
739
|
+
* with capability credentials:write. The admin caller must have
|
|
740
|
+
* TENANT_OWNER / PROJECT_ADMIN (or be a platform admin) for the target
|
|
741
|
+
* project. Emits an auth_events row of kind ticket_issue.
|
|
742
|
+
*
|
|
743
|
+
* @generated from rpc integrations.v1.IntegrationAuthService.IssueExchangeTicket
|
|
744
|
+
*/
|
|
745
|
+
issueExchangeTicket: {
|
|
746
|
+
methodKind: "unary";
|
|
747
|
+
input: typeof IssueExchangeTicketRequestSchema;
|
|
748
|
+
output: typeof IssueExchangeTicketResponseSchema;
|
|
749
|
+
},
|
|
750
|
+
}>;
|
|
751
|
+
|
|
@@ -9,7 +9,7 @@ import { file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bu
|
|
|
9
9
|
* Describes the file integrations/v1/integrations.proto.
|
|
10
10
|
*/
|
|
11
11
|
export const file_integrations_v1_integrations = /*@__PURE__*/
|
|
12
|
-
fileDesc("
|
|
12
|
+
fileDesc("CiJpbnRlZ3JhdGlvbnMvdjEvaW50ZWdyYXRpb25zLnByb3RvEg9pbnRlZ3JhdGlvbnMudjEiJAoVSW50ZWdyYXRpb25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
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Describes the message integrations.v1.IntegrationMiddleware.
|
|
@@ -109,6 +109,20 @@ export const WriteIntegrationCredentialRequestSchema = /*@__PURE__*/
|
|
|
109
109
|
export const WriteIntegrationCredentialResponseSchema = /*@__PURE__*/
|
|
110
110
|
messageDesc(file_integrations_v1_integrations, 13);
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message integrations.v1.IssueExchangeTicketRequest.
|
|
114
|
+
* Use `create(IssueExchangeTicketRequestSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export const IssueExchangeTicketRequestSchema = /*@__PURE__*/
|
|
117
|
+
messageDesc(file_integrations_v1_integrations, 14);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message integrations.v1.IssueExchangeTicketResponse.
|
|
121
|
+
* Use `create(IssueExchangeTicketResponseSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export const IssueExchangeTicketResponseSchema = /*@__PURE__*/
|
|
124
|
+
messageDesc(file_integrations_v1_integrations, 15);
|
|
125
|
+
|
|
112
126
|
/**
|
|
113
127
|
* Describes the enum integrations.v1.CredentialStrategy.
|
|
114
128
|
*/
|
|
@@ -171,3 +185,9 @@ export const ExtensionTarget = /*@__PURE__*/
|
|
|
171
185
|
export const IntegrationCredentialsService = /*@__PURE__*/
|
|
172
186
|
serviceDesc(file_integrations_v1_integrations, 0);
|
|
173
187
|
|
|
188
|
+
/**
|
|
189
|
+
* @generated from service integrations.v1.IntegrationAuthService
|
|
190
|
+
*/
|
|
191
|
+
export const IntegrationAuthService = /*@__PURE__*/
|
|
192
|
+
serviceDesc(file_integrations_v1_integrations, 1);
|
|
193
|
+
|