@qlever-llc/trellis 0.10.1-rc.6 → 0.10.2

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.
Files changed (133) hide show
  1. package/esm/generated-sdk/auth/api.d.ts +1 -4
  2. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  3. package/esm/generated-sdk/auth/api.js +1 -4
  4. package/esm/generated-sdk/auth/client.d.ts +0 -8
  5. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  6. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  7. package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
  8. package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -1
  9. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  10. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  11. package/esm/generated-sdk/health/api.d.ts.map +1 -1
  12. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  13. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  14. package/esm/generated-sdk/health/mod.d.ts.map +1 -1
  15. package/esm/generated-sdk/health/owned_api.d.ts.map +1 -1
  16. package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
  17. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  18. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  19. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  20. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  21. package/esm/generated-sdk/jobs/mod.d.ts.map +1 -1
  22. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  23. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  24. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  25. package/esm/generated-sdk/state/api.d.ts.map +1 -1
  26. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  27. package/esm/generated-sdk/state/contract.d.ts.map +1 -1
  28. package/esm/generated-sdk/state/mod.d.ts.map +1 -1
  29. package/esm/generated-sdk/state/owned_api.d.ts.map +1 -1
  30. package/esm/generated-sdk/state/schemas.d.ts.map +1 -1
  31. package/esm/generated-sdk/state/types.d.ts.map +1 -1
  32. package/esm/generated-sdk/trellis-core/api.d.ts +1 -4
  33. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  34. package/esm/generated-sdk/trellis-core/api.js +1 -4
  35. package/esm/generated-sdk/trellis-core/client.d.ts +2 -14
  36. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  37. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  38. package/esm/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  39. package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +1 -1
  40. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  41. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  42. package/esm/npm/src/sdk/auth.d.ts.map +1 -1
  43. package/esm/npm/src/sdk/core.d.ts.map +1 -1
  44. package/esm/npm/src/sdk/health.d.ts.map +1 -1
  45. package/esm/npm/src/sdk/jobs.d.ts.map +1 -1
  46. package/esm/npm/src/sdk/state.d.ts.map +1 -1
  47. package/package.json +2 -2
  48. package/script/generated-sdk/auth/api.d.ts +1 -4
  49. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  50. package/script/generated-sdk/auth/api.js +1 -4
  51. package/script/generated-sdk/auth/client.d.ts +0 -8
  52. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  53. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  54. package/script/generated-sdk/auth/mod.d.ts.map +1 -1
  55. package/script/generated-sdk/auth/owned_api.d.ts.map +1 -1
  56. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  57. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  58. package/script/generated-sdk/health/api.d.ts.map +1 -1
  59. package/script/generated-sdk/health/client.d.ts.map +1 -1
  60. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  61. package/script/generated-sdk/health/mod.d.ts.map +1 -1
  62. package/script/generated-sdk/health/owned_api.d.ts.map +1 -1
  63. package/script/generated-sdk/health/schemas.d.ts.map +1 -1
  64. package/script/generated-sdk/health/types.d.ts.map +1 -1
  65. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  66. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  67. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  68. package/script/generated-sdk/jobs/mod.d.ts.map +1 -1
  69. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  70. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  71. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  72. package/script/generated-sdk/state/api.d.ts.map +1 -1
  73. package/script/generated-sdk/state/client.d.ts.map +1 -1
  74. package/script/generated-sdk/state/contract.d.ts.map +1 -1
  75. package/script/generated-sdk/state/mod.d.ts.map +1 -1
  76. package/script/generated-sdk/state/owned_api.d.ts.map +1 -1
  77. package/script/generated-sdk/state/schemas.d.ts.map +1 -1
  78. package/script/generated-sdk/state/types.d.ts.map +1 -1
  79. package/script/generated-sdk/trellis-core/api.d.ts +1 -4
  80. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  81. package/script/generated-sdk/trellis-core/api.js +1 -4
  82. package/script/generated-sdk/trellis-core/client.d.ts +2 -14
  83. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  84. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  85. package/script/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  86. package/script/generated-sdk/trellis-core/owned_api.d.ts.map +1 -1
  87. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  88. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  89. package/script/npm/src/sdk/auth.d.ts.map +1 -1
  90. package/script/npm/src/sdk/core.d.ts.map +1 -1
  91. package/script/npm/src/sdk/health.d.ts.map +1 -1
  92. package/script/npm/src/sdk/jobs.d.ts.map +1 -1
  93. package/script/npm/src/sdk/state.d.ts.map +1 -1
  94. package/src/sdk/_generated/auth/api.ts +47 -0
  95. package/src/sdk/_generated/auth/client.ts +207 -0
  96. package/src/sdk/_generated/auth/contract.ts +67 -0
  97. package/src/sdk/_generated/auth/mod.ts +7 -0
  98. package/src/sdk/_generated/auth/owned_api.ts +609 -0
  99. package/src/sdk/_generated/auth/schemas.ts +279 -0
  100. package/src/sdk/_generated/auth/types.ts +378 -0
  101. package/src/sdk/_generated/core/api.ts +47 -0
  102. package/src/sdk/_generated/core/client.ts +53 -0
  103. package/src/sdk/_generated/core/contract.ts +67 -0
  104. package/src/sdk/_generated/core/mod.ts +6 -0
  105. package/src/sdk/_generated/core/owned_api.ts +51 -0
  106. package/src/sdk/_generated/core/schemas.ts +17 -0
  107. package/src/sdk/_generated/core/types.ts +40 -0
  108. package/src/sdk/_generated/health/api.ts +47 -0
  109. package/src/sdk/_generated/health/client.ts +45 -0
  110. package/src/sdk/_generated/health/contract.ts +67 -0
  111. package/src/sdk/_generated/health/mod.ts +6 -0
  112. package/src/sdk/_generated/health/owned_api.ts +25 -0
  113. package/src/sdk/_generated/health/schemas.ts +3 -0
  114. package/src/sdk/_generated/health/types.ts +19 -0
  115. package/src/sdk/_generated/jobs/api.ts +58 -0
  116. package/src/sdk/_generated/jobs/client.ts +78 -0
  117. package/src/sdk/_generated/jobs/contract.ts +67 -0
  118. package/src/sdk/_generated/jobs/mod.ts +6 -0
  119. package/src/sdk/_generated/jobs/owned_api.ts +126 -0
  120. package/src/sdk/_generated/jobs/schemas.ts +39 -0
  121. package/src/sdk/_generated/jobs/types.ts +92 -0
  122. package/src/sdk/_generated/state/api.ts +50 -0
  123. package/src/sdk/_generated/state/client.ts +66 -0
  124. package/src/sdk/_generated/state/contract.ts +67 -0
  125. package/src/sdk/_generated/state/mod.ts +6 -0
  126. package/src/sdk/_generated/state/owned_api.ts +75 -0
  127. package/src/sdk/_generated/state/schemas.ts +29 -0
  128. package/src/sdk/_generated/state/types.ts +55 -0
  129. package/src/sdk/auth.ts +1 -1
  130. package/src/sdk/core.ts +1 -1
  131. package/src/sdk/health.ts +1 -1
  132. package/src/sdk/jobs.ts +1 -1
  133. package/src/sdk/state.ts +1 -1
@@ -0,0 +1,378 @@
1
+ // Generated from ./generated/contracts/manifests/trellis.auth@v1.json
2
+ import type { RpcHandlerFn } from "@qlever-llc/trellis";
3
+ import type { API } from "./api.js";
4
+
5
+ export const CONTRACT_ID = "trellis.auth@v1" as const;
6
+ export const CONTRACT_DIGEST = "gLadyuZkZX2uxa3wnVMUJkDDddoVgRrDEzH8TIdeDyw" as const;
7
+
8
+ export type AuthCapabilitiesListInput = { limit: number; offset?: number; };
9
+ export type AuthCapabilitiesListOutput = { count: number; entries: Array<{ consequence?: string; contractDigest?: string; contractDisplayName?: string; contractId?: string; description: string; displayName: string; key: string; source: ("contract" | "platform"); }>; limit: number; nextOffset?: number; offset: number; };
10
+
11
+ export type AuthCapabilityGroupsDeleteInput = { groupKey: string; };
12
+ export type AuthCapabilityGroupsDeleteOutput = { success: boolean; };
13
+
14
+ export type AuthCapabilityGroupsGetInput = { groupKey: string; };
15
+ export type AuthCapabilityGroupsGetOutput = { group: { capabilities: Array<string>; createdAt: string; description: string; displayName: string; groupKey: string; includedGroups: Array<string>; updatedAt: string; }; };
16
+
17
+ export type AuthCapabilityGroupsListInput = { limit: number; offset?: number; };
18
+ export type AuthCapabilityGroupsListOutput = { count: number; entries: Array<{ capabilities: Array<string>; createdAt: string; description: string; displayName: string; groupKey: string; includedGroups: Array<string>; updatedAt: string; }>; limit: number; nextOffset?: number; offset: number; };
19
+
20
+ export type AuthCapabilityGroupsPutInput = { capabilities?: Array<string>; description: string; displayName: string; groupKey: string; includedGroups?: Array<string>; };
21
+ export type AuthCapabilityGroupsPutOutput = { group: { capabilities: Array<string>; createdAt: string; description: string; displayName: string; groupKey: string; includedGroups: Array<string>; updatedAt: string; }; };
22
+
23
+ export type AuthCatalogIssuesResolveInput = { action: ("keep-current" | "force-replace"); issueId: string; };
24
+ export type AuthCatalogIssuesResolveOutput = { action: ("keep-current" | "force-replace"); issueId: string; success: true; };
25
+
26
+ export type AuthConnectionsKickInput = { userNkey: string; };
27
+ export type AuthConnectionsKickOutput = { success: boolean; };
28
+
29
+ export type AuthConnectionsListInput = { limit: number; offset?: number; sessionKey?: string; user?: string; };
30
+ export type AuthConnectionsListOutput = { count: number; entries: Array<({ clientId: number; connectedAt: string; contractDisplayName: string; contractId: string; key: string; participantKind: "app"; principal: { identity: { identityId: string; provider: string; subject: string; }; name: string; type: "user"; userId: string; }; serverId: string; sessionKey: string; userNkey: string; } | { clientId: number; connectedAt: string; contractDisplayName: string; contractId: string; key: string; participantKind: "agent"; principal: { identity: { identityId: string; provider: string; subject: string; }; name: string; type: "user"; userId: string; }; serverId: string; sessionKey: string; userNkey: string; } | { clientId: number; connectedAt: string; contractDisplayName?: string; contractId: string; key: string; participantKind: "device"; principal: { deploymentId: string; deviceId: string; deviceType: string; runtimePublicKey: string; type: "device"; }; serverId: string; sessionKey: string; userNkey: string; } | { clientId: number; connectedAt: string; key: string; participantKind: "service"; principal: { deploymentId: string; id: string; instanceId: string; name: string; type: "service"; }; serverId: string; sessionKey: string; userNkey: string; })>; limit: number; nextOffset?: number; offset: number; };
31
+
32
+ export type AuthDeploymentAuthorityAcceptMigrationInput = { acknowledgement: string; expectedDesiredVersion?: string; planId: string; };
33
+ export type AuthDeploymentAuthorityAcceptMigrationOutput = { authority: { createdAt: string; deploymentId: string; desiredState: { capabilities: Array<string>; needs: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; resources: Array<{ alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }>; surfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; }; disabled: boolean; kind: ("service" | "device" | "app" | "cli" | "native" | "device-user"); updatedAt: string; version: string; }; };
34
+
35
+ export type AuthDeploymentAuthorityAcceptUpdateInput = { expectedDesiredVersion?: string; planId: string; };
36
+ export type AuthDeploymentAuthorityAcceptUpdateOutput = { authority: { createdAt: string; deploymentId: string; desiredState: { capabilities: Array<string>; needs: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; resources: Array<{ alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }>; surfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; }; disabled: boolean; kind: ("service" | "device" | "app" | "cli" | "native" | "device-user"); updatedAt: string; version: string; }; };
37
+
38
+ export type AuthDeploymentAuthorityGetInput = { deploymentId: string; };
39
+ export type AuthDeploymentAuthorityGetOutput = { authority: { createdAt: string; deploymentId: string; desiredState: { capabilities: Array<string>; needs: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; resources: Array<{ alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }>; surfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; }; disabled: boolean; kind: ("service" | "device" | "app" | "cli" | "native" | "device-user"); updatedAt: string; version: string; }; grantOverrides: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; materializedAuthority: ({ deploymentId: string; desiredVersion: string; error?: string; grants: Array<{ }>; reconciledAt: (string | null); resourceBindings: Array<{ alias: string; binding: { [k: string]: unknown; }; createdAt: string; deploymentId: string; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); limits: ({ [k: string]: unknown; } | null); updatedAt: string; }>; status: ("current" | "pending" | "failed"); } | null); portalRoute: ({ deploymentId: string; disabled: boolean; entryUrl: (string | null); portalId: (string | null); updatedAt: string; } | null); };
40
+
41
+ export type AuthDeploymentAuthorityGrantOverridesListInput = { limit: number; offset?: number; };
42
+ export type AuthDeploymentAuthorityGrantOverridesListOutput = { count: number; entries: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; limit: number; nextOffset?: number; offset: number; };
43
+
44
+ export type AuthDeploymentAuthorityGrantOverridesPutInput = { deploymentId: string; overrides: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; };
45
+ export type AuthDeploymentAuthorityGrantOverridesPutOutput = { grantOverrides: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; };
46
+
47
+ export type AuthDeploymentAuthorityGrantOverridesRemoveInput = { deploymentId: string; overrides: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; };
48
+ export type AuthDeploymentAuthorityGrantOverridesRemoveOutput = { grantOverrides: Array<({ capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "web"; origin: string; sessionPublicKey: null; } | { capability: string; capabilityGroupKey: null; contractId: string; deploymentId: string; grantKind: "capability"; identityKind: "session"; origin: null; sessionPublicKey: string; } | { capability: null; capabilityGroupKey: string; contractId: string; deploymentId: string; grantKind: "capability-group"; identityKind: "session"; origin: null; sessionPublicKey: string; })>; };
49
+
50
+ export type AuthDeploymentAuthorityListInput = { disabled?: boolean; kind?: ("service" | "device" | "app" | "cli" | "native" | "device-user"); limit: number; offset?: number; };
51
+ export type AuthDeploymentAuthorityListOutput = { count: number; entries: Array<{ createdAt: string; deploymentId: string; desiredState: { capabilities: Array<string>; needs: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; resources: Array<{ alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }>; surfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; }; disabled: boolean; kind: ("service" | "device" | "app" | "cli" | "native" | "device-user"); updatedAt: string; version: string; }>; limit: number; nextOffset?: number; offset: number; };
52
+
53
+ export type AuthDeploymentAuthorityPlanInput = { contract: { }; deploymentId: string; expectedDigest: string; };
54
+ export type AuthDeploymentAuthorityPlanOutput = { plan: ({ classification: "update"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; } | { acknowledgementRequired: boolean; classification: "migration"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; }); };
55
+
56
+ export type AuthDeploymentAuthorityPlansGetInput = { planId: string; };
57
+ export type AuthDeploymentAuthorityPlansGetOutput = { plan: ({ classification: "update"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; } | { acknowledgementRequired: boolean; classification: "migration"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; }); };
58
+
59
+ export type AuthDeploymentAuthorityPlansListInput = { classification?: ("update" | "migration"); deploymentId?: string; kind?: ("service" | "device" | "app" | "cli" | "native" | "device-user"); limit: number; offset?: number; state?: ("pending" | "accepted" | "rejected" | "expired"); };
60
+ export type AuthDeploymentAuthorityPlansListOutput = { count: number; entries: Array<({ classification: "update"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; } | { acknowledgementRequired: boolean; classification: "migration"; createdAt: string; decisionAt?: (string | null); decisionBy?: ({ [k: string]: unknown; } | null); decisionReason?: (string | null); deploymentId: string; desiredChange: { }; expiresAt?: string; materializationPreview: { }; planId: string; proposal: { contract?: { }; contractDigest: string; contractId: string; deploymentId: string; proposalId?: string; providedSurfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; requestedNeeds: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; summary?: { }; }; state?: ("pending" | "accepted" | "rejected" | "expired"); warnings: Array<string>; })>; limit: number; nextOffset?: number; offset: number; };
61
+
62
+ export type AuthDeploymentAuthorityReconcileInput = { deploymentId: string; desiredVersion?: string; };
63
+ export type AuthDeploymentAuthorityReconcileOutput = { authority: { createdAt: string; deploymentId: string; desiredState: { capabilities: Array<string>; needs: Array<({ contractId: string; kind: "contract"; required: boolean; } | { kind: "surface"; required: boolean; surface: { action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }; } | { capability: string; kind: "capability"; required: boolean; } | { kind: "resource"; required: boolean; resource: { alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }; })>; resources: Array<{ alias: string; definition?: { }; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); required: boolean; }>; surfaces: Array<{ action?: ("call" | "publish" | "subscribe" | "observe" | "cancel"); contractId: string; kind: ("rpc" | "operation" | "event" | "feed"); name: string; }>; }; disabled: boolean; kind: ("service" | "device" | "app" | "cli" | "native" | "device-user"); updatedAt: string; version: string; }; materializedAuthority: { deploymentId: string; desiredVersion: string; error?: string; grants: Array<{ }>; reconciledAt: (string | null); resourceBindings: Array<{ alias: string; binding: { [k: string]: unknown; }; createdAt: string; deploymentId: string; kind: ("kv" | "store" | "jobs" | "event-consumer" | "transfer"); limits: ({ [k: string]: unknown; } | null); updatedAt: string; }>; status: ("current" | "pending" | "failed"); }; reconciliation?: { deploymentId: string; desiredVersion: string; finishedAt: (string | null); message?: string; startedAt: (string | null); state: ("idle" | "running" | "succeeded" | "failed"); }; };
64
+
65
+ export type AuthDeploymentAuthorityRejectInput = { planId: string; reason?: string; };
66
+ export type AuthDeploymentAuthorityRejectOutput = { success: boolean; };
67
+
68
+ export type AuthDeploymentsCreateInput = ({ contractCompatibilityMode?: ("strict" | "mutable-dev"); deploymentId: string; kind: "service"; namespaces: Array<string>; } | { deploymentId: string; kind: "device"; reviewMode?: ("none" | "required"); });
69
+ export type AuthDeploymentsCreateOutput = { deployment: ({ contractCompatibilityMode?: ("strict" | "mutable-dev"); deploymentId: string; disabled: boolean; kind: "service"; namespaces: Array<string>; } | { deploymentId: string; disabled: boolean; kind: "device"; reviewMode?: ("none" | "required"); }); };
70
+
71
+ export type AuthDeploymentsDisableInput = { deploymentId: string; kind: ("service" | "device"); };
72
+ export type AuthDeploymentsDisableOutput = { deployment: ({ contractCompatibilityMode?: ("strict" | "mutable-dev"); deploymentId: string; disabled: boolean; kind: "service"; namespaces: Array<string>; } | { deploymentId: string; disabled: boolean; kind: "device"; reviewMode?: ("none" | "required"); }); };
73
+
74
+ export type AuthDeploymentsEnableInput = { deploymentId: string; kind: ("service" | "device"); };
75
+ export type AuthDeploymentsEnableOutput = { deployment: ({ contractCompatibilityMode?: ("strict" | "mutable-dev"); deploymentId: string; disabled: boolean; kind: "service"; namespaces: Array<string>; } | { deploymentId: string; disabled: boolean; kind: "device"; reviewMode?: ("none" | "required"); }); };
76
+
77
+ export type AuthDeploymentsListInput = { disabled?: boolean; kind?: ("service" | "device"); limit: number; offset?: number; };
78
+ export type AuthDeploymentsListOutput = { count: number; entries: Array<({ contractCompatibilityMode?: ("strict" | "mutable-dev"); deploymentId: string; disabled: boolean; kind: "service"; namespaces: Array<string>; } | { deploymentId: string; disabled: boolean; kind: "device"; reviewMode?: ("none" | "required"); })>; limit: number; nextOffset?: number; offset: number; };
79
+
80
+ export type AuthDeploymentsRemoveInput = { cascade?: boolean; deploymentId: string; kind: ("service" | "device"); purgeUnusedContracts?: boolean; };
81
+ export type AuthDeploymentsRemoveOutput = { success: boolean; };
82
+
83
+ export type AuthDeviceUserAuthoritiesListInput = { deploymentId?: string; instanceId?: string; limit: number; offset?: number; state?: ("activated" | "revoked"); };
84
+ export type AuthDeviceUserAuthoritiesListOutput = { count: number; entries: Array<{ activatedAt: string; activatedBy?: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; deploymentId: string; instanceId: string; publicIdentityKey: string; revokedAt: (string | null); state: ("activated" | "revoked"); }>; limit: number; nextOffset?: number; offset: number; };
85
+
86
+ export type AuthDeviceUserAuthoritiesReviewsDecideInput = { decision: ("approve" | "reject"); reason?: string; reviewId: string; };
87
+ export type AuthDeviceUserAuthoritiesReviewsDecideOutput = { activation?: { activatedAt: string; activatedBy?: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; deploymentId: string; instanceId: string; publicIdentityKey: string; revokedAt: (string | null); state: ("activated" | "revoked"); }; confirmationCode?: string; review: { decidedAt: (string | null); deploymentId: string; instanceId: string; publicIdentityKey: string; reason?: string; requestedAt: string; reviewId: string; state: ("pending" | "approved" | "rejected"); }; };
88
+
89
+ export type AuthDeviceUserAuthoritiesReviewsListInput = { deploymentId?: string; instanceId?: string; limit: number; offset?: number; state?: ("pending" | "approved" | "rejected"); };
90
+ export type AuthDeviceUserAuthoritiesReviewsListOutput = { count: number; entries: Array<{ decidedAt: (string | null); deploymentId: string; instanceId: string; publicIdentityKey: string; reason?: string; requestedAt: string; reviewId: string; state: ("pending" | "approved" | "rejected"); }>; limit: number; nextOffset?: number; offset: number; };
91
+
92
+ export type AuthDeviceUserAuthoritiesRevokeInput = { instanceId: string; };
93
+ export type AuthDeviceUserAuthoritiesRevokeOutput = { success: boolean; };
94
+
95
+ export type AuthDevicesConnectInfoGetInput = { contractDigest: string; iat: number; publicIdentityKey: string; sig: string; };
96
+ export type AuthDevicesConnectInfoGetOutput = { connectInfo: { auth: { authority: ("admin_reviewed" | "user_delegated"); iatSkewSeconds: number; mode: "device_identity"; }; contractDigest: string; contractId: string; deploymentId: string; instanceId: string; transport: { sentinel: { jwt: string; seed: string; }; }; transports: { native?: { natsServers: Array<string>; }; websocket?: { natsServers: Array<string>; }; }; }; status: "ready"; };
97
+
98
+ export type AuthDevicesDisableInput = { instanceId: string; };
99
+ export type AuthDevicesDisableOutput = { instance: { activatedAt: (string | null); createdAt: string; deploymentId: string; instanceId: string; metadata?: { [k: string]: string; }; publicIdentityKey: string; revokedAt: (string | null); state: ("registered" | "activated" | "revoked" | "disabled"); }; };
100
+
101
+ export type AuthDevicesEnableInput = { instanceId: string; };
102
+ export type AuthDevicesEnableOutput = { instance: { activatedAt: (string | null); createdAt: string; deploymentId: string; instanceId: string; metadata?: { [k: string]: string; }; publicIdentityKey: string; revokedAt: (string | null); state: ("registered" | "activated" | "revoked" | "disabled"); }; };
103
+
104
+ export type AuthDevicesListInput = { deploymentId?: string; limit: number; offset?: number; state?: ("registered" | "activated" | "revoked" | "disabled"); };
105
+ export type AuthDevicesListOutput = { count: number; entries: Array<{ activatedAt: (string | null); createdAt: string; deploymentId: string; instanceId: string; metadata?: { [k: string]: string; }; publicIdentityKey: string; revokedAt: (string | null); state: ("registered" | "activated" | "revoked" | "disabled"); }>; limit: number; nextOffset?: number; offset: number; };
106
+
107
+ export type AuthDevicesProvisionInput = { activationKey: string; deploymentId: string; metadata?: { [k: string]: string; }; publicIdentityKey: string; };
108
+ export type AuthDevicesProvisionOutput = { instance: { activatedAt: (string | null); createdAt: string; deploymentId: string; instanceId: string; metadata?: { [k: string]: string; }; publicIdentityKey: string; revokedAt: (string | null); state: ("registered" | "activated" | "revoked" | "disabled"); }; };
109
+
110
+ export type AuthDevicesRemoveInput = { instanceId: string; };
111
+ export type AuthDevicesRemoveOutput = { success: boolean; };
112
+
113
+ export type AuthHealthInput = { };
114
+ export type AuthHealthOutput = { checks: Array<{ error?: string; info?: { [k: string]: unknown; }; latencyMs: number; name: string; status: ("ok" | "failed"); summary?: string; }>; service: string; status: ("healthy" | "unhealthy" | "degraded"); timestamp: string; };
115
+
116
+ export type AuthIdentitiesListInput = { limit: number; offset?: number; user?: string; };
117
+ export type AuthIdentitiesListOutput = { count: number; entries: Array<{ answer: ("approved" | "denied"); answeredAt: string; capabilities: { [k: string]: { consequence?: string; description: string; displayName: string; }; }; contractEvidence: { contractDigest: string; contractId: string; }; description: string; displayName: string; identityAnchor: ({ contractId: string; kind: "web"; origin: string; } | { contractId: string; kind: "cli"; sessionPublicKey: string; } | { contractId: string; kind: "native"; sessionPublicKey: string; } | { contractId: string; devicePublicKey: string; kind: "device-user"; }); identityGrantId: string; participantKind: ("app" | "agent"); updatedAt: string; user: string; }>; limit: number; nextOffset?: number; offset: number; };
118
+
119
+ export type AuthIdentityGrantsListInput = { limit: number; offset?: number; user?: string; };
120
+ export type AuthIdentityGrantsListOutput = { count: number; entries: Array<{ capabilities: Array<string>; contractEvidence: { contractDigest: string; contractId: string; }; description: string; displayName: string; grantedAt: string; identityAnchor: ({ contractId: string; kind: "web"; origin: string; } | { contractId: string; kind: "cli"; sessionPublicKey: string; } | { contractId: string; kind: "native"; sessionPublicKey: string; } | { contractId: string; devicePublicKey: string; kind: "device-user"; }); identityGrantId: string; participantKind: ("app" | "agent"); updatedAt: string; }>; limit: number; nextOffset?: number; offset: number; };
121
+
122
+ export type AuthIdentityGrantsRevokeInput = { identityGrantId: string; user?: string; };
123
+ export type AuthIdentityGrantsRevokeOutput = { success: boolean; };
124
+
125
+ export type AuthPortalsGetInput = { portalId: string; };
126
+ export type AuthPortalsGetOutput = { defaultCapabilities: Array<string>; defaultCapabilityGroups: Array<string>; federatedProviders: Array<{ displayName: string; id: string; type: string; }>; portal: { builtIn: boolean; createdAt: string; disabled: boolean; displayName: string; entryUrl: (string | null); portalId: string; updatedAt: string; }; routes: Array<{ contractId: (string | null); disabled: boolean; origin: (string | null); portalId: string; routeKey: string; updatedAt: string; }>; settings: { allowedFederatedProviders: (Array<string> | null); federatedRegistrationEnabled: boolean; localRegistrationEnabled: boolean; portalId: string; selfRegisteredAccountActive: boolean; updatedAt: string; }; };
127
+
128
+ export type AuthPortalsListInput = { limit: number; offset?: number; };
129
+ export type AuthPortalsListOutput = { count: number; entries: Array<{ activeRouteCount: number; builtIn: boolean; createdAt: string; disabled: boolean; displayName: string; entryUrl: (string | null); portalId: string; routeCount: number; updatedAt: string; }>; limit: number; nextOffset?: number; offset: number; };
130
+
131
+ export type AuthPortalsLoginSettingsGetInput = { portalId: string; };
132
+ export type AuthPortalsLoginSettingsGetOutput = { defaultCapabilities: Array<string>; defaultCapabilityGroups: Array<string>; federatedProviders: Array<{ displayName: string; id: string; type: string; }>; portal: { builtIn: boolean; createdAt: string; disabled: boolean; displayName: string; entryUrl: (string | null); portalId: string; updatedAt: string; }; settings: { allowedFederatedProviders: (Array<string> | null); federatedRegistrationEnabled: boolean; localRegistrationEnabled: boolean; portalId: string; selfRegisteredAccountActive: boolean; updatedAt: string; }; };
133
+
134
+ export type AuthPortalsLoginSettingsUpdateInput = { allowedFederatedProviders: (Array<string> | null); defaultCapabilities: Array<string>; defaultCapabilityGroups: Array<string>; federatedRegistrationEnabled: boolean; localRegistrationEnabled: boolean; portalId: string; selfRegisteredAccountActive: boolean; };
135
+ export type AuthPortalsLoginSettingsUpdateOutput = { defaultCapabilities: Array<string>; defaultCapabilityGroups: Array<string>; federatedProviders: Array<{ displayName: string; id: string; type: string; }>; portal: { builtIn: boolean; createdAt: string; disabled: boolean; displayName: string; entryUrl: (string | null); portalId: string; updatedAt: string; }; settings: { allowedFederatedProviders: (Array<string> | null); federatedRegistrationEnabled: boolean; localRegistrationEnabled: boolean; portalId: string; selfRegisteredAccountActive: boolean; updatedAt: string; }; };
136
+
137
+ export type AuthPortalsPutInput = { disabled?: boolean; displayName: string; entryUrl: string; portalId: string; };
138
+ export type AuthPortalsPutOutput = { portal: { builtIn: boolean; createdAt: string; disabled: boolean; displayName: string; entryUrl: (string | null); portalId: string; updatedAt: string; }; };
139
+
140
+ export type AuthPortalsRemoveInput = { portalId: string; };
141
+ export type AuthPortalsRemoveOutput = { success: boolean; };
142
+
143
+ export type AuthPortalsRoutesPutInput = { contractId?: (string | null); disabled?: boolean; origin?: (string | null); portalId: string; };
144
+ export type AuthPortalsRoutesPutOutput = { route: { contractId: (string | null); disabled: boolean; origin: (string | null); portalId: string; routeKey: string; updatedAt: string; }; };
145
+
146
+ export type AuthPortalsRoutesRemoveInput = { contractId?: (string | null); origin?: (string | null); portalId: string; };
147
+ export type AuthPortalsRoutesRemoveOutput = { success: boolean; };
148
+
149
+ export type AuthRequestsValidateInput = { capabilities?: Array<string>; iat: number; payloadHash: string; proof: string; requestId: string; sessionKey: string; subject: string; };
150
+ export type AuthRequestsValidateOutput = { allowed: boolean; caller: ({ active: boolean; capabilities: Array<string>; email: string; identity: { identityId: string; provider: string; subject: string; }; image?: string; lastAuth: string; name: string; participantKind: ("app" | "agent"); type: "user"; userId: string; } | { active: boolean; capabilities: Array<string>; id: string; name: string; type: "service"; } | { active: boolean; capabilities: Array<string>; deploymentId: string; deviceId: string; deviceType: string; runtimePublicKey: string; type: "device"; }); inboxPrefix: string; };
151
+
152
+ export type AuthServiceInstancesDisableInput = { instanceId: string; };
153
+ export type AuthServiceInstancesDisableOutput = { instance: { capabilities: Array<string>; createdAt: string; deploymentId: string; disabled: boolean; instanceId: string; instanceKey: string; resourceBindings?: { eventConsumers?: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; filterSubjects: Array<string>; maxDeliver: number; ordering: "strict"; replay: ("new" | "all"); stream: string; }; }; jobs?: { namespace: string; queues: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; defaultDeadlineMs?: number; dlq: boolean; logs: boolean; maxDeliver: number; payload: { schema: string; }; progress: boolean; publishPrefix: string; queueType: string; result?: { schema: string; }; workSubject: string; }; }; workStream?: string; }; kv?: { [k: string]: { bucket: string; history: number; maxValueBytes?: number; ttlMs: number; }; }; store?: { [k: string]: { maxObjectBytes?: number; maxTotalBytes?: number; name: string; ttlMs: number; }; }; }; }; };
154
+
155
+ export type AuthServiceInstancesEnableInput = { instanceId: string; };
156
+ export type AuthServiceInstancesEnableOutput = { instance: { capabilities: Array<string>; createdAt: string; deploymentId: string; disabled: boolean; instanceId: string; instanceKey: string; resourceBindings?: { eventConsumers?: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; filterSubjects: Array<string>; maxDeliver: number; ordering: "strict"; replay: ("new" | "all"); stream: string; }; }; jobs?: { namespace: string; queues: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; defaultDeadlineMs?: number; dlq: boolean; logs: boolean; maxDeliver: number; payload: { schema: string; }; progress: boolean; publishPrefix: string; queueType: string; result?: { schema: string; }; workSubject: string; }; }; workStream?: string; }; kv?: { [k: string]: { bucket: string; history: number; maxValueBytes?: number; ttlMs: number; }; }; store?: { [k: string]: { maxObjectBytes?: number; maxTotalBytes?: number; name: string; ttlMs: number; }; }; }; }; };
157
+
158
+ export type AuthServiceInstancesListInput = { deploymentId?: string; disabled?: boolean; limit: number; offset?: number; };
159
+ export type AuthServiceInstancesListOutput = { count: number; entries: Array<{ capabilities: Array<string>; createdAt: string; deploymentId: string; disabled: boolean; instanceId: string; instanceKey: string; resourceBindings?: { eventConsumers?: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; filterSubjects: Array<string>; maxDeliver: number; ordering: "strict"; replay: ("new" | "all"); stream: string; }; }; jobs?: { namespace: string; queues: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; defaultDeadlineMs?: number; dlq: boolean; logs: boolean; maxDeliver: number; payload: { schema: string; }; progress: boolean; publishPrefix: string; queueType: string; result?: { schema: string; }; workSubject: string; }; }; workStream?: string; }; kv?: { [k: string]: { bucket: string; history: number; maxValueBytes?: number; ttlMs: number; }; }; store?: { [k: string]: { maxObjectBytes?: number; maxTotalBytes?: number; name: string; ttlMs: number; }; }; }; }>; limit: number; nextOffset?: number; offset: number; };
160
+
161
+ export type AuthServiceInstancesProvisionInput = { deploymentId: string; instanceKey: string; };
162
+ export type AuthServiceInstancesProvisionOutput = { instance: { capabilities: Array<string>; createdAt: string; deploymentId: string; disabled: boolean; instanceId: string; instanceKey: string; resourceBindings?: { eventConsumers?: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; filterSubjects: Array<string>; maxDeliver: number; ordering: "strict"; replay: ("new" | "all"); stream: string; }; }; jobs?: { namespace: string; queues: { [k: string]: { ackWaitMs: number; backoffMs: Array<number>; concurrency: number; consumerName: string; defaultDeadlineMs?: number; dlq: boolean; logs: boolean; maxDeliver: number; payload: { schema: string; }; progress: boolean; publishPrefix: string; queueType: string; result?: { schema: string; }; workSubject: string; }; }; workStream?: string; }; kv?: { [k: string]: { bucket: string; history: number; maxValueBytes?: number; ttlMs: number; }; }; store?: { [k: string]: { maxObjectBytes?: number; maxTotalBytes?: number; name: string; ttlMs: number; }; }; }; }; };
163
+
164
+ export type AuthServiceInstancesRemoveInput = { instanceId: string; };
165
+ export type AuthServiceInstancesRemoveOutput = { success: boolean; };
166
+
167
+ export type AuthSessionsListInput = { limit: number; offset?: number; user?: string; };
168
+ export type AuthSessionsListOutput = { count: number; entries: Array<({ contractDisplayName: string; contractId: string; createdAt: string; key: string; lastAuth: string; participantKind: "app"; principal: { identity: { identityId: string; provider: string; subject: string; }; name: string; type: "user"; userId: string; }; sessionKey: string; } | { contractDisplayName: string; contractId: string; createdAt: string; key: string; lastAuth: string; participantKind: "agent"; principal: { identity: { identityId: string; provider: string; subject: string; }; name: string; type: "user"; userId: string; }; sessionKey: string; } | { contractDisplayName?: string; contractId: string; createdAt: string; key: string; lastAuth: string; participantKind: "device"; principal: { deploymentId: string; deviceId: string; deviceType: string; runtimePublicKey: string; type: "device"; }; sessionKey: string; } | { createdAt: string; key: string; lastAuth: string; participantKind: "service"; principal: { deploymentId: string; id: string; instanceId: string; name: string; type: "service"; }; sessionKey: string; })>; limit: number; nextOffset?: number; offset: number; };
169
+
170
+ export type AuthSessionsLogoutInput = { };
171
+ export type AuthSessionsLogoutOutput = { success: boolean; };
172
+
173
+ export type AuthSessionsMeInput = { };
174
+ export type AuthSessionsMeOutput = { device: ({ active: boolean; capabilities: Array<string>; deploymentId: string; deviceId: string; deviceType: string; runtimePublicKey: string; type: "device"; } | null); participantKind: (("app" | "agent") | "device" | "service"); service: ({ active: boolean; capabilities: Array<string>; id: string; name: string; type: "service"; } | null); user: ({ active: boolean; capabilities: Array<string>; email: string; identity: { identityId: string; provider: string; subject: string; }; image?: string; lastLogin?: string; name: string; userId: string; } | null); };
175
+
176
+ export type AuthSessionsRevokeInput = { sessionKey: string; };
177
+ export type AuthSessionsRevokeOutput = { success: boolean; };
178
+
179
+ export type AuthUserIdentitiesListInput = { limit: number; offset?: number; userId: string; };
180
+ export type AuthUserIdentitiesListOutput = { count: number; entries: Array<{ displayName: (string | null); email: (string | null); emailVerified: boolean; identityId: string; lastLoginAt: (string | null); linkedAt: string; provider: string; subject: string; }>; limit: number; nextOffset?: number; offset: number; };
181
+
182
+ export type AuthUserIdentitiesUnlinkInput = { identityId: string; userId: string; };
183
+ export type AuthUserIdentitiesUnlinkOutput = { success: boolean; };
184
+
185
+ export type AuthUsersCreateInput = { active?: boolean; capabilities?: Array<string>; capabilityGroups?: Array<string>; email?: string; name?: string; username?: string; };
186
+ export type AuthUsersCreateOutput = { user: { active: boolean; capabilities: Array<string>; capabilityGroups: Array<string>; email?: string; identities: Array<{ displayName: (string | null); email: (string | null); emailVerified: boolean; identityId: string; lastLoginAt: (string | null); linkedAt: string; provider: string; subject: string; }>; name?: string; userId: string; }; };
187
+
188
+ export type AuthUsersGetInput = { userId: string; };
189
+ export type AuthUsersGetOutput = { user: { active: boolean; capabilities: Array<string>; capabilityGroups: Array<string>; email?: string; identities: Array<{ displayName: (string | null); email: (string | null); emailVerified: boolean; identityId: string; lastLoginAt: (string | null); linkedAt: string; provider: string; subject: string; }>; name?: string; userId: string; }; };
190
+
191
+ export type AuthUsersIdentityLinkCreateInput = { returnTo?: string; };
192
+ export type AuthUsersIdentityLinkCreateOutput = { expiresAt: string; flowId: string; url: string; };
193
+
194
+ export type AuthUsersListInput = { limit: number; offset?: number; };
195
+ export type AuthUsersListOutput = { count: number; entries: Array<{ active: boolean; capabilities: Array<string>; capabilityGroups: Array<string>; email?: string; identities: Array<{ displayName: (string | null); email: (string | null); emailVerified: boolean; identityId: string; lastLoginAt: (string | null); linkedAt: string; provider: string; subject: string; }>; name?: string; userId: string; }>; limit: number; nextOffset?: number; offset: number; };
196
+
197
+ export type AuthUsersPasswordChangeInput = { currentPassword: string; newPassword: string; };
198
+ export type AuthUsersPasswordChangeOutput = { success: boolean; };
199
+
200
+ export type AuthUsersPasswordResetCreateInput = { expiresInSeconds?: number; userId: string; };
201
+ export type AuthUsersPasswordResetCreateOutput = { expiresAt: string; flowId: string; url: string; };
202
+
203
+ export type AuthUsersUpdateInput = { active?: boolean; capabilities?: Array<string>; capabilityGroups?: Array<string>; email?: string; name?: string; userId: string; };
204
+ export type AuthUsersUpdateOutput = { success: boolean; };
205
+
206
+ export type AuthDeviceUserAuthoritiesResolveInput = { flowId: string; };
207
+ export type AuthDeviceUserAuthoritiesResolveProgress = { deploymentId: string; instanceId: string; requestedAt: string; reviewId: string; status: "pending_review"; };
208
+ export type AuthDeviceUserAuthoritiesResolveOutput = ({ activatedAt: string; confirmationCode?: string; deploymentId: string; instanceId: string; status: "activated"; } | { reason?: string; status: "rejected"; });
209
+
210
+ export type AuthConnectionsClosedEvent = ({ header: { id: string; time: string; }; } & { id: string; origin: string; sessionKey: string; userNkey: string; });
211
+
212
+ export type AuthConnectionsKickedEvent = ({ header: { id: string; time: string; }; } & { id: string; kickedBy: string; origin: string; userNkey: string; });
213
+
214
+ export type AuthConnectionsOpenedEvent = ({ header: { id: string; time: string; }; } & { id: string; origin: string; sessionKey: string; userNkey: string; });
215
+
216
+ export type AuthDeviceUserAuthoritiesApprovedEvent = { approvedAt: string; approvedBy: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; deploymentId: string; flowId: string; instanceId: string; publicIdentityKey: string; requestedAt: string; requestedBy: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; reviewId: string; };
217
+
218
+ export type AuthDeviceUserAuthoritiesRequestedEvent = { deploymentId: string; flowId: string; instanceId: string; publicIdentityKey: string; requestedAt: string; requestedBy: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; };
219
+
220
+ export type AuthDeviceUserAuthoritiesResolvedEvent = { deploymentId: string; flowId?: string; instanceId: string; publicIdentityKey: string; resolvedAt: string; resolvedBy: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; reviewId?: string; };
221
+
222
+ export type AuthDeviceUserAuthoritiesReviewRequestedEvent = { deploymentId: string; flowId: string; instanceId: string; publicIdentityKey: string; requestedAt: string; requestedBy: { identity: { identityId: string; provider: string; subject: string; }; participantKind: ("app" | "agent"); userId: string; }; reviewId: string; };
223
+
224
+ export type AuthSessionsRevokedEvent = ({ header: { id: string; time: string; }; } & { id: string; origin: string; revokedBy: string; sessionKey: string; });
225
+
226
+ export interface RpcMap {
227
+ "Auth.Capabilities.List": { input: AuthCapabilitiesListInput; output: AuthCapabilitiesListOutput; };
228
+ "Auth.CapabilityGroups.Delete": { input: AuthCapabilityGroupsDeleteInput; output: AuthCapabilityGroupsDeleteOutput; };
229
+ "Auth.CapabilityGroups.Get": { input: AuthCapabilityGroupsGetInput; output: AuthCapabilityGroupsGetOutput; };
230
+ "Auth.CapabilityGroups.List": { input: AuthCapabilityGroupsListInput; output: AuthCapabilityGroupsListOutput; };
231
+ "Auth.CapabilityGroups.Put": { input: AuthCapabilityGroupsPutInput; output: AuthCapabilityGroupsPutOutput; };
232
+ "Auth.CatalogIssues.Resolve": { input: AuthCatalogIssuesResolveInput; output: AuthCatalogIssuesResolveOutput; };
233
+ "Auth.Connections.Kick": { input: AuthConnectionsKickInput; output: AuthConnectionsKickOutput; };
234
+ "Auth.Connections.List": { input: AuthConnectionsListInput; output: AuthConnectionsListOutput; };
235
+ "Auth.DeploymentAuthority.AcceptMigration": { input: AuthDeploymentAuthorityAcceptMigrationInput; output: AuthDeploymentAuthorityAcceptMigrationOutput; };
236
+ "Auth.DeploymentAuthority.AcceptUpdate": { input: AuthDeploymentAuthorityAcceptUpdateInput; output: AuthDeploymentAuthorityAcceptUpdateOutput; };
237
+ "Auth.DeploymentAuthority.Get": { input: AuthDeploymentAuthorityGetInput; output: AuthDeploymentAuthorityGetOutput; };
238
+ "Auth.DeploymentAuthority.GrantOverrides.List": { input: AuthDeploymentAuthorityGrantOverridesListInput; output: AuthDeploymentAuthorityGrantOverridesListOutput; };
239
+ "Auth.DeploymentAuthority.GrantOverrides.Put": { input: AuthDeploymentAuthorityGrantOverridesPutInput; output: AuthDeploymentAuthorityGrantOverridesPutOutput; };
240
+ "Auth.DeploymentAuthority.GrantOverrides.Remove": { input: AuthDeploymentAuthorityGrantOverridesRemoveInput; output: AuthDeploymentAuthorityGrantOverridesRemoveOutput; };
241
+ "Auth.DeploymentAuthority.List": { input: AuthDeploymentAuthorityListInput; output: AuthDeploymentAuthorityListOutput; };
242
+ "Auth.DeploymentAuthority.Plan": { input: AuthDeploymentAuthorityPlanInput; output: AuthDeploymentAuthorityPlanOutput; };
243
+ "Auth.DeploymentAuthority.Plans.Get": { input: AuthDeploymentAuthorityPlansGetInput; output: AuthDeploymentAuthorityPlansGetOutput; };
244
+ "Auth.DeploymentAuthority.Plans.List": { input: AuthDeploymentAuthorityPlansListInput; output: AuthDeploymentAuthorityPlansListOutput; };
245
+ "Auth.DeploymentAuthority.Reconcile": { input: AuthDeploymentAuthorityReconcileInput; output: AuthDeploymentAuthorityReconcileOutput; };
246
+ "Auth.DeploymentAuthority.Reject": { input: AuthDeploymentAuthorityRejectInput; output: AuthDeploymentAuthorityRejectOutput; };
247
+ "Auth.Deployments.Create": { input: AuthDeploymentsCreateInput; output: AuthDeploymentsCreateOutput; };
248
+ "Auth.Deployments.Disable": { input: AuthDeploymentsDisableInput; output: AuthDeploymentsDisableOutput; };
249
+ "Auth.Deployments.Enable": { input: AuthDeploymentsEnableInput; output: AuthDeploymentsEnableOutput; };
250
+ "Auth.Deployments.List": { input: AuthDeploymentsListInput; output: AuthDeploymentsListOutput; };
251
+ "Auth.Deployments.Remove": { input: AuthDeploymentsRemoveInput; output: AuthDeploymentsRemoveOutput; };
252
+ "Auth.DeviceUserAuthorities.List": { input: AuthDeviceUserAuthoritiesListInput; output: AuthDeviceUserAuthoritiesListOutput; };
253
+ "Auth.DeviceUserAuthorities.Reviews.Decide": { input: AuthDeviceUserAuthoritiesReviewsDecideInput; output: AuthDeviceUserAuthoritiesReviewsDecideOutput; };
254
+ "Auth.DeviceUserAuthorities.Reviews.List": { input: AuthDeviceUserAuthoritiesReviewsListInput; output: AuthDeviceUserAuthoritiesReviewsListOutput; };
255
+ "Auth.DeviceUserAuthorities.Revoke": { input: AuthDeviceUserAuthoritiesRevokeInput; output: AuthDeviceUserAuthoritiesRevokeOutput; };
256
+ "Auth.Devices.ConnectInfo.Get": { input: AuthDevicesConnectInfoGetInput; output: AuthDevicesConnectInfoGetOutput; };
257
+ "Auth.Devices.Disable": { input: AuthDevicesDisableInput; output: AuthDevicesDisableOutput; };
258
+ "Auth.Devices.Enable": { input: AuthDevicesEnableInput; output: AuthDevicesEnableOutput; };
259
+ "Auth.Devices.List": { input: AuthDevicesListInput; output: AuthDevicesListOutput; };
260
+ "Auth.Devices.Provision": { input: AuthDevicesProvisionInput; output: AuthDevicesProvisionOutput; };
261
+ "Auth.Devices.Remove": { input: AuthDevicesRemoveInput; output: AuthDevicesRemoveOutput; };
262
+ "Auth.Health": { input: AuthHealthInput; output: AuthHealthOutput; };
263
+ "Auth.Identities.List": { input: AuthIdentitiesListInput; output: AuthIdentitiesListOutput; };
264
+ "Auth.IdentityGrants.List": { input: AuthIdentityGrantsListInput; output: AuthIdentityGrantsListOutput; };
265
+ "Auth.IdentityGrants.Revoke": { input: AuthIdentityGrantsRevokeInput; output: AuthIdentityGrantsRevokeOutput; };
266
+ "Auth.Portals.Get": { input: AuthPortalsGetInput; output: AuthPortalsGetOutput; };
267
+ "Auth.Portals.List": { input: AuthPortalsListInput; output: AuthPortalsListOutput; };
268
+ "Auth.Portals.LoginSettings.Get": { input: AuthPortalsLoginSettingsGetInput; output: AuthPortalsLoginSettingsGetOutput; };
269
+ "Auth.Portals.LoginSettings.Update": { input: AuthPortalsLoginSettingsUpdateInput; output: AuthPortalsLoginSettingsUpdateOutput; };
270
+ "Auth.Portals.Put": { input: AuthPortalsPutInput; output: AuthPortalsPutOutput; };
271
+ "Auth.Portals.Remove": { input: AuthPortalsRemoveInput; output: AuthPortalsRemoveOutput; };
272
+ "Auth.Portals.Routes.Put": { input: AuthPortalsRoutesPutInput; output: AuthPortalsRoutesPutOutput; };
273
+ "Auth.Portals.Routes.Remove": { input: AuthPortalsRoutesRemoveInput; output: AuthPortalsRoutesRemoveOutput; };
274
+ "Auth.Requests.Validate": { input: AuthRequestsValidateInput; output: AuthRequestsValidateOutput; };
275
+ "Auth.ServiceInstances.Disable": { input: AuthServiceInstancesDisableInput; output: AuthServiceInstancesDisableOutput; };
276
+ "Auth.ServiceInstances.Enable": { input: AuthServiceInstancesEnableInput; output: AuthServiceInstancesEnableOutput; };
277
+ "Auth.ServiceInstances.List": { input: AuthServiceInstancesListInput; output: AuthServiceInstancesListOutput; };
278
+ "Auth.ServiceInstances.Provision": { input: AuthServiceInstancesProvisionInput; output: AuthServiceInstancesProvisionOutput; };
279
+ "Auth.ServiceInstances.Remove": { input: AuthServiceInstancesRemoveInput; output: AuthServiceInstancesRemoveOutput; };
280
+ "Auth.Sessions.List": { input: AuthSessionsListInput; output: AuthSessionsListOutput; };
281
+ "Auth.Sessions.Logout": { input: AuthSessionsLogoutInput; output: AuthSessionsLogoutOutput; };
282
+ "Auth.Sessions.Me": { input: AuthSessionsMeInput; output: AuthSessionsMeOutput; };
283
+ "Auth.Sessions.Revoke": { input: AuthSessionsRevokeInput; output: AuthSessionsRevokeOutput; };
284
+ "Auth.UserIdentities.List": { input: AuthUserIdentitiesListInput; output: AuthUserIdentitiesListOutput; };
285
+ "Auth.UserIdentities.Unlink": { input: AuthUserIdentitiesUnlinkInput; output: AuthUserIdentitiesUnlinkOutput; };
286
+ "Auth.Users.Create": { input: AuthUsersCreateInput; output: AuthUsersCreateOutput; };
287
+ "Auth.Users.Get": { input: AuthUsersGetInput; output: AuthUsersGetOutput; };
288
+ "Auth.Users.IdentityLink.Create": { input: AuthUsersIdentityLinkCreateInput; output: AuthUsersIdentityLinkCreateOutput; };
289
+ "Auth.Users.List": { input: AuthUsersListInput; output: AuthUsersListOutput; };
290
+ "Auth.Users.Password.Change": { input: AuthUsersPasswordChangeInput; output: AuthUsersPasswordChangeOutput; };
291
+ "Auth.Users.PasswordReset.Create": { input: AuthUsersPasswordResetCreateInput; output: AuthUsersPasswordResetCreateOutput; };
292
+ "Auth.Users.Update": { input: AuthUsersUpdateInput; output: AuthUsersUpdateOutput; };
293
+ }
294
+
295
+ export type AuthCapabilitiesListHandler = RpcHandlerFn<typeof API.owned, "Auth.Capabilities.List">;
296
+ export type AuthCapabilityGroupsDeleteHandler = RpcHandlerFn<typeof API.owned, "Auth.CapabilityGroups.Delete">;
297
+ export type AuthCapabilityGroupsGetHandler = RpcHandlerFn<typeof API.owned, "Auth.CapabilityGroups.Get">;
298
+ export type AuthCapabilityGroupsListHandler = RpcHandlerFn<typeof API.owned, "Auth.CapabilityGroups.List">;
299
+ export type AuthCapabilityGroupsPutHandler = RpcHandlerFn<typeof API.owned, "Auth.CapabilityGroups.Put">;
300
+ export type AuthCatalogIssuesResolveHandler = RpcHandlerFn<typeof API.owned, "Auth.CatalogIssues.Resolve">;
301
+ export type AuthConnectionsKickHandler = RpcHandlerFn<typeof API.owned, "Auth.Connections.Kick">;
302
+ export type AuthConnectionsListHandler = RpcHandlerFn<typeof API.owned, "Auth.Connections.List">;
303
+ export type AuthDeploymentAuthorityAcceptMigrationHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.AcceptMigration">;
304
+ export type AuthDeploymentAuthorityAcceptUpdateHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.AcceptUpdate">;
305
+ export type AuthDeploymentAuthorityGetHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Get">;
306
+ export type AuthDeploymentAuthorityGrantOverridesListHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.GrantOverrides.List">;
307
+ export type AuthDeploymentAuthorityGrantOverridesPutHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.GrantOverrides.Put">;
308
+ export type AuthDeploymentAuthorityGrantOverridesRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.GrantOverrides.Remove">;
309
+ export type AuthDeploymentAuthorityListHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.List">;
310
+ export type AuthDeploymentAuthorityPlanHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Plan">;
311
+ export type AuthDeploymentAuthorityPlansGetHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Plans.Get">;
312
+ export type AuthDeploymentAuthorityPlansListHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Plans.List">;
313
+ export type AuthDeploymentAuthorityReconcileHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Reconcile">;
314
+ export type AuthDeploymentAuthorityRejectHandler = RpcHandlerFn<typeof API.owned, "Auth.DeploymentAuthority.Reject">;
315
+ export type AuthDeploymentsCreateHandler = RpcHandlerFn<typeof API.owned, "Auth.Deployments.Create">;
316
+ export type AuthDeploymentsDisableHandler = RpcHandlerFn<typeof API.owned, "Auth.Deployments.Disable">;
317
+ export type AuthDeploymentsEnableHandler = RpcHandlerFn<typeof API.owned, "Auth.Deployments.Enable">;
318
+ export type AuthDeploymentsListHandler = RpcHandlerFn<typeof API.owned, "Auth.Deployments.List">;
319
+ export type AuthDeploymentsRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.Deployments.Remove">;
320
+ export type AuthDeviceUserAuthoritiesListHandler = RpcHandlerFn<typeof API.owned, "Auth.DeviceUserAuthorities.List">;
321
+ export type AuthDeviceUserAuthoritiesReviewsDecideHandler = RpcHandlerFn<typeof API.owned, "Auth.DeviceUserAuthorities.Reviews.Decide">;
322
+ export type AuthDeviceUserAuthoritiesReviewsListHandler = RpcHandlerFn<typeof API.owned, "Auth.DeviceUserAuthorities.Reviews.List">;
323
+ export type AuthDeviceUserAuthoritiesRevokeHandler = RpcHandlerFn<typeof API.owned, "Auth.DeviceUserAuthorities.Revoke">;
324
+ export type AuthDevicesConnectInfoGetHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.ConnectInfo.Get">;
325
+ export type AuthDevicesDisableHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.Disable">;
326
+ export type AuthDevicesEnableHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.Enable">;
327
+ export type AuthDevicesListHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.List">;
328
+ export type AuthDevicesProvisionHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.Provision">;
329
+ export type AuthDevicesRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.Devices.Remove">;
330
+ export type AuthHealthHandler = RpcHandlerFn<typeof API.owned, "Auth.Health">;
331
+ export type AuthIdentitiesListHandler = RpcHandlerFn<typeof API.owned, "Auth.Identities.List">;
332
+ export type AuthIdentityGrantsListHandler = RpcHandlerFn<typeof API.owned, "Auth.IdentityGrants.List">;
333
+ export type AuthIdentityGrantsRevokeHandler = RpcHandlerFn<typeof API.owned, "Auth.IdentityGrants.Revoke">;
334
+ export type AuthPortalsGetHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.Get">;
335
+ export type AuthPortalsListHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.List">;
336
+ export type AuthPortalsLoginSettingsGetHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.LoginSettings.Get">;
337
+ export type AuthPortalsLoginSettingsUpdateHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.LoginSettings.Update">;
338
+ export type AuthPortalsPutHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.Put">;
339
+ export type AuthPortalsRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.Remove">;
340
+ export type AuthPortalsRoutesPutHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.Routes.Put">;
341
+ export type AuthPortalsRoutesRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.Portals.Routes.Remove">;
342
+ export type AuthRequestsValidateHandler = RpcHandlerFn<typeof API.owned, "Auth.Requests.Validate">;
343
+ export type AuthServiceInstancesDisableHandler = RpcHandlerFn<typeof API.owned, "Auth.ServiceInstances.Disable">;
344
+ export type AuthServiceInstancesEnableHandler = RpcHandlerFn<typeof API.owned, "Auth.ServiceInstances.Enable">;
345
+ export type AuthServiceInstancesListHandler = RpcHandlerFn<typeof API.owned, "Auth.ServiceInstances.List">;
346
+ export type AuthServiceInstancesProvisionHandler = RpcHandlerFn<typeof API.owned, "Auth.ServiceInstances.Provision">;
347
+ export type AuthServiceInstancesRemoveHandler = RpcHandlerFn<typeof API.owned, "Auth.ServiceInstances.Remove">;
348
+ export type AuthSessionsListHandler = RpcHandlerFn<typeof API.owned, "Auth.Sessions.List">;
349
+ export type AuthSessionsLogoutHandler = RpcHandlerFn<typeof API.owned, "Auth.Sessions.Logout">;
350
+ export type AuthSessionsMeHandler = RpcHandlerFn<typeof API.owned, "Auth.Sessions.Me">;
351
+ export type AuthSessionsRevokeHandler = RpcHandlerFn<typeof API.owned, "Auth.Sessions.Revoke">;
352
+ export type AuthUserIdentitiesListHandler = RpcHandlerFn<typeof API.owned, "Auth.UserIdentities.List">;
353
+ export type AuthUserIdentitiesUnlinkHandler = RpcHandlerFn<typeof API.owned, "Auth.UserIdentities.Unlink">;
354
+ export type AuthUsersCreateHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.Create">;
355
+ export type AuthUsersGetHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.Get">;
356
+ export type AuthUsersIdentityLinkCreateHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.IdentityLink.Create">;
357
+ export type AuthUsersListHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.List">;
358
+ export type AuthUsersPasswordChangeHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.Password.Change">;
359
+ export type AuthUsersPasswordResetCreateHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.PasswordReset.Create">;
360
+ export type AuthUsersUpdateHandler = RpcHandlerFn<typeof API.owned, "Auth.Users.Update">;
361
+
362
+ export interface EventMap {
363
+ "Auth.Connections.Closed": { event: AuthConnectionsClosedEvent; };
364
+ "Auth.Connections.Kicked": { event: AuthConnectionsKickedEvent; };
365
+ "Auth.Connections.Opened": { event: AuthConnectionsOpenedEvent; };
366
+ "Auth.DeviceUserAuthorities.Approved": { event: AuthDeviceUserAuthoritiesApprovedEvent; };
367
+ "Auth.DeviceUserAuthorities.Requested": { event: AuthDeviceUserAuthoritiesRequestedEvent; };
368
+ "Auth.DeviceUserAuthorities.Resolved": { event: AuthDeviceUserAuthoritiesResolvedEvent; };
369
+ "Auth.DeviceUserAuthorities.ReviewRequested": { event: AuthDeviceUserAuthoritiesReviewRequestedEvent; };
370
+ "Auth.Sessions.Revoked": { event: AuthSessionsRevokedEvent; };
371
+ }
372
+
373
+ export interface FeedMap {
374
+ }
375
+
376
+ export interface SubjectMap {
377
+ }
378
+
@@ -0,0 +1,47 @@
1
+ // Generated from ./generated/contracts/manifests/trellis.core@v1.json
2
+ import { OWNED_API } from "./owned_api.js";
3
+
4
+ export { OWNED_API };
5
+
6
+ export type UsedApi = {
7
+ rpc: {
8
+ };
9
+ operations: {
10
+ };
11
+ events: {
12
+ };
13
+ feeds: {
14
+ };
15
+ subjects: {
16
+ };
17
+ };
18
+
19
+ export const USED_API: UsedApi = {
20
+ rpc: {
21
+ },
22
+ operations: {
23
+ },
24
+ events: {
25
+ },
26
+ feeds: {
27
+ },
28
+ subjects: {
29
+ },
30
+ };
31
+
32
+ export type OwnedApi = typeof OWNED_API;
33
+ export type Api = {
34
+ rpc: OwnedApi["rpc"] & UsedApi["rpc"];
35
+ operations: OwnedApi["operations"] & UsedApi["operations"];
36
+ events: OwnedApi["events"] & UsedApi["events"];
37
+ feeds: OwnedApi["feeds"] & UsedApi["feeds"];
38
+ subjects: OwnedApi["subjects"] & UsedApi["subjects"];
39
+ };
40
+
41
+ export const API = {
42
+ owned: OWNED_API,
43
+ used: USED_API,
44
+ } as const;
45
+
46
+ export type ApiViews = typeof API;
47
+
@@ -0,0 +1,53 @@
1
+ // Generated from ./generated/contracts/manifests/trellis.core@v1.json
2
+ import type { AcceptedOperation, AsyncResult, BaseError, EventOpts, FeedSubscribeOpts, FeedSubscription, HandlerTrellis, MapStateStoreClient, MaybeAsync, OperationInputBuilder, OperationObserverCallbacks, OperationRef, OperationRefData, OperationRuntimeHandle, PreparedTrellisEvent, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, Result, RpcHandlerContext, SendTransferGrant, SendTransferHandle, TerminalOperation, TransferCapableOperationInputBuilder, TrellisConnection, UnexpectedError, ValidationError, ValueStateStoreClient } from "@qlever-llc/trellis";
3
+ import type { API, Api } from "./api.js";
4
+ import type * as Types from "./types.js";
5
+
6
+ type EventCallback<TMessage> = {
7
+ bivarianceHack(message: TMessage): MaybeAsync<void, BaseError>;
8
+ }["bivarianceHack"];
9
+
10
+ type RpcHandler<TInput, TOutput> = (args: { input: TInput; context: RpcHandlerContext; client: HandlerClient }) => MaybeAsync<TOutput, BaseError>;
11
+
12
+ export type TrellisCoreState = {};
13
+
14
+ export interface TrellisCoreClient {
15
+ readonly name: string;
16
+ readonly timeout: number;
17
+ readonly stream: string;
18
+ readonly api: Api;
19
+ readonly state: TrellisCoreState;
20
+ readonly connection: TrellisConnection;
21
+ transfer(grant: SendTransferGrant): SendTransferHandle;
22
+ transfer(grant: ReceiveTransferGrant): ReceiveTransferHandle;
23
+ readonly rpc: {
24
+ readonly trellis: {
25
+ catalog(input: Types.TrellisCatalogInput, opts?: RequestOpts): AsyncResult<Types.TrellisCatalogOutput, BaseError>;
26
+ contractGet(input: Types.TrellisContractGetInput, opts?: RequestOpts): AsyncResult<Types.TrellisContractGetOutput, BaseError>;
27
+ surfaceStatus(input: Types.TrellisSurfaceStatusInput, opts?: RequestOpts): AsyncResult<Types.TrellisSurfaceStatusOutput, BaseError>;
28
+ };
29
+ };
30
+ readonly event: {};
31
+ readonly feed: {};
32
+ readonly operation: {};
33
+ wait(): AsyncResult<void, BaseError>;
34
+ }
35
+
36
+ export interface Service extends Client {
37
+ readonly handle: ServiceHandle;
38
+ }
39
+
40
+ export interface ServiceHandle {
41
+ readonly rpc: {
42
+ readonly trellis: {
43
+ catalog(handler: RpcHandler<Types.TrellisCatalogInput, Types.TrellisCatalogOutput>): Promise<void>;
44
+ contractGet(handler: RpcHandler<Types.TrellisContractGetInput, Types.TrellisContractGetOutput>): Promise<void>;
45
+ surfaceStatus(handler: RpcHandler<Types.TrellisSurfaceStatusInput, Types.TrellisSurfaceStatusOutput>): Promise<void>;
46
+ };
47
+ };
48
+ readonly feed: {};
49
+ readonly operation: {};
50
+ }
51
+
52
+ export type HandlerClient = HandlerTrellis<Api>;
53
+ export type Client = TrellisCoreClient;