@structured-id/proto 0.14.0 → 0.16.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/CHANGELOG.md +17 -0
- package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
- package/dist/generated/sid/v1/admin/admin.js +55 -62
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
- package/dist/generated/sid/v1/admin/branding.js +87 -98
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
- package/dist/generated/sid/v1/admin/enrollment.js +109 -107
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
- package/dist/generated/sid/v1/admin/flow.js +143 -155
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.d.ts +11 -4
- package/dist/generated/sid/v1/admin/security.js +14 -14
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
- package/dist/generated/sid/v1/admin/sessions.js +27 -29
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
- package/dist/generated/sid/v1/authn/auth.js +20 -20
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +203 -111
- package/dist/generated/sid/v1/authz/authz.js +308 -330
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
- package/dist/generated/sid/v1/authz/governance.js +65 -71
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/common/types.d.ts +29 -0
- package/dist/generated/sid/v1/common/types.js +47 -0
- package/dist/generated/sid/v1/common/types.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
- package/dist/generated/sid/v1/federation/upstream.js +53 -59
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
- package/dist/generated/sid/v1/ids/ids.js +6 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +100 -48
- package/dist/generated/sid/v1/machine/machine_user.js +228 -179
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
- package/dist/generated/sid/v1/machine/pat.js +41 -45
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
- package/dist/generated/sid/v1/projects/projects.js +293 -271
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/dist/ip.d.ts +31 -0
- package/dist/ip.js +84 -0
- package/dist/ip.js.map +1 -0
- package/package.json +6 -2
|
@@ -56,3 +56,15 @@ export declare const CedarPolicyId: MessageType<wire.CedarPolicyId>;
|
|
|
56
56
|
export type CedarPolicyId = wire.CedarPolicyId;
|
|
57
57
|
export declare const AccessRequestId: MessageType<wire.AccessRequestId>;
|
|
58
58
|
export type AccessRequestId = wire.AccessRequestId;
|
|
59
|
+
export declare const InitialAccessTokenId: MessageType<wire.InitialAccessTokenId>;
|
|
60
|
+
export type InitialAccessTokenId = wire.InitialAccessTokenId;
|
|
61
|
+
export declare const PatId: MessageType<wire.PatId>;
|
|
62
|
+
export type PatId = wire.PatId;
|
|
63
|
+
export declare const BrandingConfigId: MessageType<wire.BrandingConfigId>;
|
|
64
|
+
export type BrandingConfigId = wire.BrandingConfigId;
|
|
65
|
+
export declare const FlowActionId: MessageType<wire.FlowActionId>;
|
|
66
|
+
export type FlowActionId = wire.FlowActionId;
|
|
67
|
+
export declare const InviteId: MessageType<wire.InviteId>;
|
|
68
|
+
export type InviteId = wire.InviteId;
|
|
69
|
+
export declare const UpstreamProviderId: MessageType<wire.UpstreamProviderId>;
|
|
70
|
+
export type UpstreamProviderId = wire.UpstreamProviderId;
|
|
@@ -27,4 +27,10 @@ export const GroupId = wire.GroupId;
|
|
|
27
27
|
export const RoleAssignmentId = wire.RoleAssignmentId;
|
|
28
28
|
export const CedarPolicyId = wire.CedarPolicyId;
|
|
29
29
|
export const AccessRequestId = wire.AccessRequestId;
|
|
30
|
+
export const InitialAccessTokenId = wire.InitialAccessTokenId;
|
|
31
|
+
export const PatId = wire.PatId;
|
|
32
|
+
export const BrandingConfigId = wire.BrandingConfigId;
|
|
33
|
+
export const FlowActionId = wire.FlowActionId;
|
|
34
|
+
export const InviteId = wire.InviteId;
|
|
35
|
+
export const UpstreamProviderId = wire.UpstreamProviderId;
|
|
30
36
|
//# sourceMappingURL=ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ids/ids.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAkC,IAAI,CAAC,WAAW,CAAC;AAE3E,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,KAAK,GAA4B,IAAI,CAAC,KAAK,CAAC;AAEzD,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,C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/ids; this module\n// re-exports its objects so generated messages that carry an identifier\n// share them instead of a second generated copy.\nimport type { MessageType } from \"@protobuf-ts/runtime\";\nimport { wire } from \"@structured-id/ids\";\n\nexport const ProfileId: MessageType<wire.ProfileId> = wire.ProfileId;\nexport type ProfileId = wire.ProfileId;\nexport const PrincipalId: MessageType<wire.PrincipalId> = wire.PrincipalId;\nexport type PrincipalId = wire.PrincipalId;\nexport const ProfileEmailId: MessageType<wire.ProfileEmailId> = wire.ProfileEmailId;\nexport type ProfileEmailId = wire.ProfileEmailId;\nexport const ProfilePhoneId: MessageType<wire.ProfilePhoneId> = wire.ProfilePhoneId;\nexport type ProfilePhoneId = wire.ProfilePhoneId;\nexport const DeviceId: MessageType<wire.DeviceId> = wire.DeviceId;\nexport type DeviceId = wire.DeviceId;\nexport const BindingId: MessageType<wire.BindingId> = wire.BindingId;\nexport type BindingId = wire.BindingId;\nexport const OrgId: MessageType<wire.OrgId> = wire.OrgId;\nexport type OrgId = wire.OrgId;\nexport const IssuerId: MessageType<wire.IssuerId> = wire.IssuerId;\nexport type IssuerId = wire.IssuerId;\nexport const ApplicationId: MessageType<wire.ApplicationId> = wire.ApplicationId;\nexport type ApplicationId = wire.ApplicationId;\nexport const PasswordOperationId: MessageType<wire.PasswordOperationId> = wire.PasswordOperationId;\nexport type PasswordOperationId = wire.PasswordOperationId;\nexport const OpaqueLoginId: MessageType<wire.OpaqueLoginId> = wire.OpaqueLoginId;\nexport type OpaqueLoginId = wire.OpaqueLoginId;\nexport const SessionId: MessageType<wire.SessionId> = wire.SessionId;\nexport type SessionId = wire.SessionId;\nexport const CredentialId: MessageType<wire.CredentialId> = wire.CredentialId;\nexport type CredentialId = wire.CredentialId;\nexport const OtpSessionId: MessageType<wire.OtpSessionId> = wire.OtpSessionId;\nexport type OtpSessionId = wire.OtpSessionId;\nexport const MagicLinkId: MessageType<wire.MagicLinkId> = wire.MagicLinkId;\nexport type MagicLinkId = wire.MagicLinkId;\nexport const StepUpChallengeId: MessageType<wire.StepUpChallengeId> = wire.StepUpChallengeId;\nexport type StepUpChallengeId = wire.StepUpChallengeId;\nexport const ResetSessionId: MessageType<wire.ResetSessionId> = wire.ResetSessionId;\nexport type ResetSessionId = wire.ResetSessionId;\nexport const ImportedPasswordUpgradeId: MessageType<wire.ImportedPasswordUpgradeId> = wire.ImportedPasswordUpgradeId;\nexport type ImportedPasswordUpgradeId = wire.ImportedPasswordUpgradeId;\nexport const MachineUserId: MessageType<wire.MachineUserId> = wire.MachineUserId;\nexport type MachineUserId = wire.MachineUserId;\nexport const ProvisioningConnectorId: MessageType<wire.ProvisioningConnectorId> = wire.ProvisioningConnectorId;\nexport type ProvisioningConnectorId = wire.ProvisioningConnectorId;\nexport const ResourceId: MessageType<wire.ResourceId> = wire.ResourceId;\nexport type ResourceId = wire.ResourceId;\nexport const ProvisioningCredentialId: MessageType<wire.ProvisioningCredentialId> = wire.ProvisioningCredentialId;\nexport type ProvisioningCredentialId = wire.ProvisioningCredentialId;\nexport const ProjectId: MessageType<wire.ProjectId> = wire.ProjectId;\nexport type ProjectId = wire.ProjectId;\nexport const RoleId: MessageType<wire.RoleId> = wire.RoleId;\nexport type RoleId = wire.RoleId;\nexport const GroupId: MessageType<wire.GroupId> = wire.GroupId;\nexport type GroupId = wire.GroupId;\nexport const RoleAssignmentId: MessageType<wire.RoleAssignmentId> = wire.RoleAssignmentId;\nexport type RoleAssignmentId = wire.RoleAssignmentId;\nexport const CedarPolicyId: MessageType<wire.CedarPolicyId> = wire.CedarPolicyId;\nexport type CedarPolicyId = wire.CedarPolicyId;\nexport const AccessRequestId: MessageType<wire.AccessRequestId> = wire.AccessRequestId;\nexport type AccessRequestId = wire.AccessRequestId;\n"]}
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ids/ids.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAgC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AE/G,MAAM,CAAC,MAAM,UAAU,GAAiC,IAAI,CAAC,UAAU,CAAC;AAExE,MAAM,CAAC,MAAM,wBAAwB,GAA+C,IAAI,CAAC,wBAAwB,CAAC;AAElH,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,MAAM,GAA6B,IAAI,CAAC,MAAM,CAAC;AAE5D,MAAM,CAAC,MAAM,OAAO,GAA8B,IAAI,CAAC,OAAO,CAAC;AAE/D,MAAM,CAAC,MAAM,gBAAgB,GAAuC,IAAI,CAAC,gBAAgB,CAAC;AAE1F,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,eAAe,GAAsC,IAAI,CAAC,eAAe,CAAC;AAEvF,MAAM,CAAC,MAAM,oBAAoB,GAA2C,IAAI,CAAC,oBAAoB,CAAC;AAEtG,MAAM,CAAC,MAAM,KAAK,GAA4B,IAAI,CAAC,KAAK,CAAC;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAAuC,IAAI,CAAC,gBAAgB,CAAC;AAE1F,MAAM,CAAC,MAAM,YAAY,GAAmC,IAAI,CAAC,YAAY,CAAC;AAE9E,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,kBAAkB,GAAyC,IAAI,CAAC,kBAAkB,CAAC","sourcesContent":["// The sid.v1.ids messages are owned by @structured-id/ids; this module\n// re-exports its objects so generated messages that carry an identifier\n// share them instead of a second generated copy.\nimport type { MessageType } from \"@protobuf-ts/runtime\";\nimport { wire } from \"@structured-id/ids\";\n\nexport const ProfileId: MessageType<wire.ProfileId> = wire.ProfileId;\nexport type ProfileId = wire.ProfileId;\nexport const PrincipalId: MessageType<wire.PrincipalId> = wire.PrincipalId;\nexport type PrincipalId = wire.PrincipalId;\nexport const ProfileEmailId: MessageType<wire.ProfileEmailId> = wire.ProfileEmailId;\nexport type ProfileEmailId = wire.ProfileEmailId;\nexport const ProfilePhoneId: MessageType<wire.ProfilePhoneId> = wire.ProfilePhoneId;\nexport type ProfilePhoneId = wire.ProfilePhoneId;\nexport const DeviceId: MessageType<wire.DeviceId> = wire.DeviceId;\nexport type DeviceId = wire.DeviceId;\nexport const BindingId: MessageType<wire.BindingId> = wire.BindingId;\nexport type BindingId = wire.BindingId;\nexport const OrgId: MessageType<wire.OrgId> = wire.OrgId;\nexport type OrgId = wire.OrgId;\nexport const IssuerId: MessageType<wire.IssuerId> = wire.IssuerId;\nexport type IssuerId = wire.IssuerId;\nexport const ApplicationId: MessageType<wire.ApplicationId> = wire.ApplicationId;\nexport type ApplicationId = wire.ApplicationId;\nexport const PasswordOperationId: MessageType<wire.PasswordOperationId> = wire.PasswordOperationId;\nexport type PasswordOperationId = wire.PasswordOperationId;\nexport const OpaqueLoginId: MessageType<wire.OpaqueLoginId> = wire.OpaqueLoginId;\nexport type OpaqueLoginId = wire.OpaqueLoginId;\nexport const SessionId: MessageType<wire.SessionId> = wire.SessionId;\nexport type SessionId = wire.SessionId;\nexport const CredentialId: MessageType<wire.CredentialId> = wire.CredentialId;\nexport type CredentialId = wire.CredentialId;\nexport const OtpSessionId: MessageType<wire.OtpSessionId> = wire.OtpSessionId;\nexport type OtpSessionId = wire.OtpSessionId;\nexport const MagicLinkId: MessageType<wire.MagicLinkId> = wire.MagicLinkId;\nexport type MagicLinkId = wire.MagicLinkId;\nexport const StepUpChallengeId: MessageType<wire.StepUpChallengeId> = wire.StepUpChallengeId;\nexport type StepUpChallengeId = wire.StepUpChallengeId;\nexport const ResetSessionId: MessageType<wire.ResetSessionId> = wire.ResetSessionId;\nexport type ResetSessionId = wire.ResetSessionId;\nexport const ImportedPasswordUpgradeId: MessageType<wire.ImportedPasswordUpgradeId> = wire.ImportedPasswordUpgradeId;\nexport type ImportedPasswordUpgradeId = wire.ImportedPasswordUpgradeId;\nexport const MachineUserId: MessageType<wire.MachineUserId> = wire.MachineUserId;\nexport type MachineUserId = wire.MachineUserId;\nexport const ProvisioningConnectorId: MessageType<wire.ProvisioningConnectorId> = wire.ProvisioningConnectorId;\nexport type ProvisioningConnectorId = wire.ProvisioningConnectorId;\nexport const ResourceId: MessageType<wire.ResourceId> = wire.ResourceId;\nexport type ResourceId = wire.ResourceId;\nexport const ProvisioningCredentialId: MessageType<wire.ProvisioningCredentialId> = wire.ProvisioningCredentialId;\nexport type ProvisioningCredentialId = wire.ProvisioningCredentialId;\nexport const ProjectId: MessageType<wire.ProjectId> = wire.ProjectId;\nexport type ProjectId = wire.ProjectId;\nexport const RoleId: MessageType<wire.RoleId> = wire.RoleId;\nexport type RoleId = wire.RoleId;\nexport const GroupId: MessageType<wire.GroupId> = wire.GroupId;\nexport type GroupId = wire.GroupId;\nexport const RoleAssignmentId: MessageType<wire.RoleAssignmentId> = wire.RoleAssignmentId;\nexport type RoleAssignmentId = wire.RoleAssignmentId;\nexport const CedarPolicyId: MessageType<wire.CedarPolicyId> = wire.CedarPolicyId;\nexport type CedarPolicyId = wire.CedarPolicyId;\nexport const AccessRequestId: MessageType<wire.AccessRequestId> = wire.AccessRequestId;\nexport type AccessRequestId = wire.AccessRequestId;\nexport const InitialAccessTokenId: MessageType<wire.InitialAccessTokenId> = wire.InitialAccessTokenId;\nexport type InitialAccessTokenId = wire.InitialAccessTokenId;\nexport const PatId: MessageType<wire.PatId> = wire.PatId;\nexport type PatId = wire.PatId;\nexport const BrandingConfigId: MessageType<wire.BrandingConfigId> = wire.BrandingConfigId;\nexport type BrandingConfigId = wire.BrandingConfigId;\nexport const FlowActionId: MessageType<wire.FlowActionId> = wire.FlowActionId;\nexport type FlowActionId = wire.FlowActionId;\nexport const InviteId: MessageType<wire.InviteId> = wire.InviteId;\nexport type InviteId = wire.InviteId;\nexport const UpstreamProviderId: MessageType<wire.UpstreamProviderId> = wire.UpstreamProviderId;\nexport type UpstreamProviderId = wire.UpstreamProviderId;\n"]}
|
|
@@ -5,7 +5,12 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { Empty } from "../../../google/protobuf/empty.js";
|
|
9
|
+
import { OrgId } from "../ids/ids.js";
|
|
10
|
+
import { ProfileId } from "../ids/ids.js";
|
|
8
11
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
12
|
+
import { ProjectId } from "../ids/ids.js";
|
|
13
|
+
import { MachineUserId } from "../ids/ids.js";
|
|
9
14
|
/**
|
|
10
15
|
* Messages
|
|
11
16
|
*
|
|
@@ -13,14 +18,16 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
|
13
18
|
*/
|
|
14
19
|
export interface MachineUserInfo {
|
|
15
20
|
/**
|
|
16
|
-
* @generated from protobuf field:
|
|
21
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId id = 1
|
|
17
22
|
*/
|
|
18
|
-
id
|
|
23
|
+
id?: MachineUserId;
|
|
19
24
|
/**
|
|
20
|
-
* @generated from protobuf field:
|
|
25
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
21
26
|
*/
|
|
22
|
-
projectId
|
|
27
|
+
projectId?: ProjectId;
|
|
23
28
|
/**
|
|
29
|
+
* The OAuth `client_id` (RFC 6749 §2.2) the machine user authenticates as.
|
|
30
|
+
*
|
|
24
31
|
* @generated from protobuf field: string client_id = 3
|
|
25
32
|
*/
|
|
26
33
|
clientId: string;
|
|
@@ -41,49 +48,84 @@ export interface MachineUserInfo {
|
|
|
41
48
|
*/
|
|
42
49
|
status: MachineUserStatus;
|
|
43
50
|
/**
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: string owner_id = 9
|
|
51
|
+
* Who the machine user acts for.
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf field: sid.v1.machine.MachineUserOwner owner = 8
|
|
49
54
|
*/
|
|
50
|
-
|
|
55
|
+
owner?: MachineUserOwner;
|
|
51
56
|
/**
|
|
52
57
|
* Roles are RoleAssignments of the machine user principal (AuthzService),
|
|
53
58
|
* never a list stored on the machine user.
|
|
54
59
|
*
|
|
55
|
-
* @generated from protobuf field: repeated string scopes =
|
|
60
|
+
* @generated from protobuf field: repeated string scopes = 9
|
|
56
61
|
*/
|
|
57
62
|
scopes: string[];
|
|
58
63
|
/**
|
|
59
|
-
* @generated from protobuf field: repeated string ip_allowlist =
|
|
64
|
+
* @generated from protobuf field: repeated string ip_allowlist = 10
|
|
60
65
|
*/
|
|
61
66
|
ipAllowlist: string[];
|
|
62
67
|
/**
|
|
63
|
-
* @generated from protobuf field: int32 rate_limit_rpm =
|
|
68
|
+
* @generated from protobuf field: int32 rate_limit_rpm = 11
|
|
64
69
|
*/
|
|
65
70
|
rateLimitRpm: number;
|
|
66
71
|
/**
|
|
67
|
-
* @generated from protobuf field: int32 max_token_lifetime =
|
|
72
|
+
* @generated from protobuf field: int32 max_token_lifetime = 12
|
|
68
73
|
*/
|
|
69
74
|
maxTokenLifetime: number;
|
|
70
75
|
/**
|
|
71
|
-
* @generated from protobuf field: google.protobuf.Timestamp expires_at =
|
|
76
|
+
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 13
|
|
72
77
|
*/
|
|
73
78
|
expiresAt?: Timestamp;
|
|
74
79
|
/**
|
|
75
|
-
* @generated from protobuf field: google.protobuf.Timestamp last_used_at =
|
|
80
|
+
* @generated from protobuf field: google.protobuf.Timestamp last_used_at = 14
|
|
76
81
|
*/
|
|
77
82
|
lastUsedAt?: Timestamp;
|
|
78
83
|
/**
|
|
79
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at =
|
|
84
|
+
* @generated from protobuf field: google.protobuf.Timestamp created_at = 15
|
|
80
85
|
*/
|
|
81
86
|
createdAt?: Timestamp;
|
|
82
87
|
/**
|
|
83
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at =
|
|
88
|
+
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 16
|
|
84
89
|
*/
|
|
85
90
|
updatedAt?: Timestamp;
|
|
86
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Who a machine user acts for. Set at its creation and never changed.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf message sid.v1.machine.MachineUserOwner
|
|
96
|
+
*/
|
|
97
|
+
export interface MachineUserOwner {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf oneof: owner
|
|
100
|
+
*/
|
|
101
|
+
owner: {
|
|
102
|
+
oneofKind: "profile";
|
|
103
|
+
/**
|
|
104
|
+
* A Profile's own machine user.
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile = 1
|
|
107
|
+
*/
|
|
108
|
+
profile: ProfileId;
|
|
109
|
+
} | {
|
|
110
|
+
oneofKind: "organization";
|
|
111
|
+
/**
|
|
112
|
+
* An organization's machine user, created by its administrators.
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf field: sid.v1.ids.OrgId organization = 2
|
|
115
|
+
*/
|
|
116
|
+
organization: OrgId;
|
|
117
|
+
} | {
|
|
118
|
+
oneofKind: "system";
|
|
119
|
+
/**
|
|
120
|
+
* The installation's own, established by its provisioning only.
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf field: google.protobuf.Empty system = 3
|
|
123
|
+
*/
|
|
124
|
+
system: Empty;
|
|
125
|
+
} | {
|
|
126
|
+
oneofKind: undefined;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
87
129
|
/**
|
|
88
130
|
* @generated from protobuf message sid.v1.machine.MachineCredentialInfo
|
|
89
131
|
*/
|
|
@@ -122,9 +164,9 @@ export interface ImpersonationGrantInfo {
|
|
|
122
164
|
*/
|
|
123
165
|
id: string;
|
|
124
166
|
/**
|
|
125
|
-
* @generated from protobuf field:
|
|
167
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 2
|
|
126
168
|
*/
|
|
127
|
-
machineUserId
|
|
169
|
+
machineUserId?: MachineUserId;
|
|
128
170
|
/**
|
|
129
171
|
* @generated from protobuf field: sid.v1.machine.ImpersonationTargetType target_type = 3
|
|
130
172
|
*/
|
|
@@ -147,9 +189,9 @@ export interface ImpersonationGrantInfo {
|
|
|
147
189
|
*/
|
|
148
190
|
export interface CreateMachineUserRequest {
|
|
149
191
|
/**
|
|
150
|
-
* @generated from protobuf field:
|
|
192
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
151
193
|
*/
|
|
152
|
-
projectId
|
|
194
|
+
projectId?: ProjectId;
|
|
153
195
|
/**
|
|
154
196
|
* @generated from protobuf field: string display_name = 2
|
|
155
197
|
*/
|
|
@@ -199,9 +241,9 @@ export interface CreateMachineUserResponse {
|
|
|
199
241
|
*/
|
|
200
242
|
export interface GetMachineUserRequest {
|
|
201
243
|
/**
|
|
202
|
-
* @generated from protobuf field:
|
|
244
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
203
245
|
*/
|
|
204
|
-
machineUserId
|
|
246
|
+
machineUserId?: MachineUserId;
|
|
205
247
|
}
|
|
206
248
|
/**
|
|
207
249
|
* @generated from protobuf message sid.v1.machine.MachineUserResponse
|
|
@@ -217,9 +259,9 @@ export interface MachineUserResponse {
|
|
|
217
259
|
*/
|
|
218
260
|
export interface UpdateMachineUserRequest {
|
|
219
261
|
/**
|
|
220
|
-
* @generated from protobuf field:
|
|
262
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
221
263
|
*/
|
|
222
|
-
machineUserId
|
|
264
|
+
machineUserId?: MachineUserId;
|
|
223
265
|
/**
|
|
224
266
|
* @generated from protobuf field: string display_name = 2
|
|
225
267
|
*/
|
|
@@ -256,9 +298,9 @@ export interface UpdateMachineUserRequest {
|
|
|
256
298
|
*/
|
|
257
299
|
export interface DeleteMachineUserRequest {
|
|
258
300
|
/**
|
|
259
|
-
* @generated from protobuf field:
|
|
301
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
260
302
|
*/
|
|
261
|
-
machineUserId
|
|
303
|
+
machineUserId?: MachineUserId;
|
|
262
304
|
}
|
|
263
305
|
/**
|
|
264
306
|
* @generated from protobuf message sid.v1.machine.DeleteMachineUserResponse
|
|
@@ -270,9 +312,9 @@ export interface DeleteMachineUserResponse {
|
|
|
270
312
|
*/
|
|
271
313
|
export interface ListMachineUsersRequest {
|
|
272
314
|
/**
|
|
273
|
-
* @generated from protobuf field:
|
|
315
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
274
316
|
*/
|
|
275
|
-
projectId
|
|
317
|
+
projectId?: ProjectId;
|
|
276
318
|
}
|
|
277
319
|
/**
|
|
278
320
|
* @generated from protobuf message sid.v1.machine.ListMachineUsersResponse
|
|
@@ -288,27 +330,27 @@ export interface ListMachineUsersResponse {
|
|
|
288
330
|
*/
|
|
289
331
|
export interface SuspendMachineUserRequest {
|
|
290
332
|
/**
|
|
291
|
-
* @generated from protobuf field:
|
|
333
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
292
334
|
*/
|
|
293
|
-
machineUserId
|
|
335
|
+
machineUserId?: MachineUserId;
|
|
294
336
|
}
|
|
295
337
|
/**
|
|
296
338
|
* @generated from protobuf message sid.v1.machine.ReactivateMachineUserRequest
|
|
297
339
|
*/
|
|
298
340
|
export interface ReactivateMachineUserRequest {
|
|
299
341
|
/**
|
|
300
|
-
* @generated from protobuf field:
|
|
342
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
301
343
|
*/
|
|
302
|
-
machineUserId
|
|
344
|
+
machineUserId?: MachineUserId;
|
|
303
345
|
}
|
|
304
346
|
/**
|
|
305
347
|
* @generated from protobuf message sid.v1.machine.AddMachineCredentialRequest
|
|
306
348
|
*/
|
|
307
349
|
export interface AddMachineCredentialRequest {
|
|
308
350
|
/**
|
|
309
|
-
* @generated from protobuf field:
|
|
351
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
310
352
|
*/
|
|
311
|
-
machineUserId
|
|
353
|
+
machineUserId?: MachineUserId;
|
|
312
354
|
/**
|
|
313
355
|
* @generated from protobuf field: sid.v1.machine.MachineCredentialType credential_type = 2
|
|
314
356
|
*/
|
|
@@ -344,9 +386,9 @@ export interface AddMachineCredentialResponse {
|
|
|
344
386
|
*/
|
|
345
387
|
export interface RevokeMachineCredentialRequest {
|
|
346
388
|
/**
|
|
347
|
-
* @generated from protobuf field:
|
|
389
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
348
390
|
*/
|
|
349
|
-
machineUserId
|
|
391
|
+
machineUserId?: MachineUserId;
|
|
350
392
|
/**
|
|
351
393
|
* @generated from protobuf field: string kid = 2
|
|
352
394
|
*/
|
|
@@ -362,9 +404,9 @@ export interface RevokeMachineCredentialResponse {
|
|
|
362
404
|
*/
|
|
363
405
|
export interface ListMachineCredentialsRequest {
|
|
364
406
|
/**
|
|
365
|
-
* @generated from protobuf field:
|
|
407
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
366
408
|
*/
|
|
367
|
-
machineUserId
|
|
409
|
+
machineUserId?: MachineUserId;
|
|
368
410
|
}
|
|
369
411
|
/**
|
|
370
412
|
* @generated from protobuf message sid.v1.machine.ListMachineCredentialsResponse
|
|
@@ -380,9 +422,9 @@ export interface ListMachineCredentialsResponse {
|
|
|
380
422
|
*/
|
|
381
423
|
export interface RotateMachineCredentialRequest {
|
|
382
424
|
/**
|
|
383
|
-
* @generated from protobuf field:
|
|
425
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
384
426
|
*/
|
|
385
|
-
machineUserId
|
|
427
|
+
machineUserId?: MachineUserId;
|
|
386
428
|
/**
|
|
387
429
|
* @generated from protobuf field: string kid = 2
|
|
388
430
|
*/
|
|
@@ -422,9 +464,9 @@ export interface RotateMachineCredentialResponse {
|
|
|
422
464
|
*/
|
|
423
465
|
export interface GrantImpersonationRequest {
|
|
424
466
|
/**
|
|
425
|
-
* @generated from protobuf field:
|
|
467
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
426
468
|
*/
|
|
427
|
-
machineUserId
|
|
469
|
+
machineUserId?: MachineUserId;
|
|
428
470
|
/**
|
|
429
471
|
* @generated from protobuf field: sid.v1.machine.ImpersonationTargetType target_type = 2
|
|
430
472
|
*/
|
|
@@ -452,9 +494,9 @@ export interface GrantImpersonationResponse {
|
|
|
452
494
|
*/
|
|
453
495
|
export interface RevokeImpersonationRequest {
|
|
454
496
|
/**
|
|
455
|
-
* @generated from protobuf field:
|
|
497
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
456
498
|
*/
|
|
457
|
-
machineUserId
|
|
499
|
+
machineUserId?: MachineUserId;
|
|
458
500
|
/**
|
|
459
501
|
* @generated from protobuf field: string target_type = 2
|
|
460
502
|
*/
|
|
@@ -474,9 +516,9 @@ export interface RevokeImpersonationResponse {
|
|
|
474
516
|
*/
|
|
475
517
|
export interface ListImpersonationGrantsRequest {
|
|
476
518
|
/**
|
|
477
|
-
* @generated from protobuf field:
|
|
519
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
478
520
|
*/
|
|
479
|
-
machineUserId
|
|
521
|
+
machineUserId?: MachineUserId;
|
|
480
522
|
}
|
|
481
523
|
/**
|
|
482
524
|
* @generated from protobuf message sid.v1.machine.ListImpersonationGrantsResponse
|
|
@@ -612,6 +654,16 @@ declare class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
|
|
|
612
654
|
* @generated MessageType for protobuf message sid.v1.machine.MachineUserInfo
|
|
613
655
|
*/
|
|
614
656
|
export declare const MachineUserInfo: MachineUserInfo$Type;
|
|
657
|
+
declare class MachineUserOwner$Type extends MessageType<MachineUserOwner> {
|
|
658
|
+
constructor();
|
|
659
|
+
create(value?: PartialMessage<MachineUserOwner>): MachineUserOwner;
|
|
660
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MachineUserOwner): MachineUserOwner;
|
|
661
|
+
internalBinaryWrite(message: MachineUserOwner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @generated MessageType for protobuf message sid.v1.machine.MachineUserOwner
|
|
665
|
+
*/
|
|
666
|
+
export declare const MachineUserOwner: MachineUserOwner$Type;
|
|
615
667
|
declare class MachineCredentialInfo$Type extends MessageType<MachineCredentialInfo> {
|
|
616
668
|
constructor();
|
|
617
669
|
create(value?: PartialMessage<MachineCredentialInfo>): MachineCredentialInfo;
|