@prance/sdk 0.1.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 (40) hide show
  1. package/dist/client.d.ts +62 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/gen/cognition/v1/enums.d.ts +39 -0
  4. package/dist/gen/cognition/v1/enums.d.ts.map +1 -0
  5. package/dist/gen/cognition/v1/prompts.d.ts +335 -0
  6. package/dist/gen/cognition/v1/prompts.d.ts.map +1 -0
  7. package/dist/gen/common/v1/common.d.ts +60 -0
  8. package/dist/gen/common/v1/common.d.ts.map +1 -0
  9. package/dist/gen/common/v1/enums.d.ts +49 -0
  10. package/dist/gen/common/v1/enums.d.ts.map +1 -0
  11. package/dist/gen/google/protobuf/timestamp.d.ts +129 -0
  12. package/dist/gen/google/protobuf/timestamp.d.ts.map +1 -0
  13. package/dist/gen/interviews/v1/agents.d.ts +130 -0
  14. package/dist/gen/interviews/v1/agents.d.ts.map +1 -0
  15. package/dist/gen/interviews/v1/avatars.d.ts +292 -0
  16. package/dist/gen/interviews/v1/avatars.d.ts.map +1 -0
  17. package/dist/gen/interviews/v1/enums.d.ts +41 -0
  18. package/dist/gen/interviews/v1/enums.d.ts.map +1 -0
  19. package/dist/gen/interviews/v1/interviews.d.ts +598 -0
  20. package/dist/gen/interviews/v1/interviews.d.ts.map +1 -0
  21. package/dist/gen/organizations/v1/contracts.d.ts +185 -0
  22. package/dist/gen/organizations/v1/contracts.d.ts.map +1 -0
  23. package/dist/gen/organizations/v1/organizations.d.ts +161 -0
  24. package/dist/gen/organizations/v1/organizations.d.ts.map +1 -0
  25. package/dist/gen/organizations/v1/projects.d.ts +332 -0
  26. package/dist/gen/organizations/v1/projects.d.ts.map +1 -0
  27. package/dist/gen/screenings/v1/enums.d.ts +21 -0
  28. package/dist/gen/screenings/v1/enums.d.ts.map +1 -0
  29. package/dist/gen/screenings/v1/screenings.d.ts +173 -0
  30. package/dist/gen/screenings/v1/screenings.d.ts.map +1 -0
  31. package/dist/gen/users/v1/candidates.d.ts +219 -0
  32. package/dist/gen/users/v1/candidates.d.ts.map +1 -0
  33. package/dist/gen/users/v1/enums.d.ts +39 -0
  34. package/dist/gen/users/v1/enums.d.ts.map +1 -0
  35. package/dist/gen/users/v1/users.d.ts +160 -0
  36. package/dist/gen/users/v1/users.d.ts.map +1 -0
  37. package/dist/index.d.ts +12 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +20052 -0
  40. package/package.json +48 -0
@@ -0,0 +1,62 @@
1
+ import { type AgentsServiceClient, type AvatarsServiceClient, type CandidatesServiceClient, type ContractsServiceClient, type InterviewsServiceClient, type OrganizationsServiceClient, type ProjectsServiceClient, type PromptsServiceClient, type ScreeningsServiceClient, type UsersServiceClient } from "./index.js";
2
+ export { ClientError, Status } from "nice-grpc-common";
3
+ /**
4
+ * Configuration for the Prance SDK client.
5
+ */
6
+ export interface PranceClientOptions {
7
+ /**
8
+ * Base URL of the API gateway, with no trailing slash
9
+ * (e.g. "https://api.prance.jp" or "https://dev.api.prance.jp").
10
+ */
11
+ baseUrl: string;
12
+ /**
13
+ * Returns an auth token. Called before each request to get a fresh token.
14
+ * The returned value is sent as `Authorization: Bearer <token>`.
15
+ */
16
+ getToken: () => Promise<string>;
17
+ /**
18
+ * Side-effect callback for errors (e.g. logging, reporting). Errors are
19
+ * still thrown and must be handled by the caller; this is for observation.
20
+ */
21
+ onError?: (err: unknown) => void;
22
+ }
23
+ /**
24
+ * Typed access to every Prance service, grouped by module.
25
+ *
26
+ * The gateway routes by module path prefix and strips it
27
+ * (e.g. `/users/<grpc-path>` -> `/<grpc-path>`), so each service is reached
28
+ * through its module-prefixed channel.
29
+ */
30
+ export interface PranceClient {
31
+ users: UsersServiceClient;
32
+ candidates: CandidatesServiceClient;
33
+ organizations: OrganizationsServiceClient;
34
+ contracts: ContractsServiceClient;
35
+ projects: ProjectsServiceClient;
36
+ interviews: InterviewsServiceClient;
37
+ agents: AgentsServiceClient;
38
+ avatars: AvatarsServiceClient;
39
+ prompts: PromptsServiceClient;
40
+ screenings: ScreeningsServiceClient;
41
+ }
42
+ /**
43
+ * Creates a new Prance SDK client.
44
+ *
45
+ * @param opts - Configuration including baseUrl and token getter
46
+ * @returns A typed client with access to all Prance services
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * import { createPranceClient } from "@prance/sdk";
51
+ *
52
+ * const client = createPranceClient({
53
+ * baseUrl: "https://api.prance.jp",
54
+ * getToken: async () => myAuth.getIdToken(),
55
+ * });
56
+ *
57
+ * const { user } = await client.users.getUser({ id: "..." });
58
+ * console.log(user?.createdAt?.toLocaleDateString());
59
+ * ```
60
+ */
61
+ export declare function createPranceClient({ baseUrl, getToken, onError, }: PranceClientOptions): PranceClient;
62
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAEzB,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAE3B,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAE/B,KAAK,qBAAqB,EAE1B,KAAK,oBAAoB,EAEzB,KAAK,uBAAuB,EAE5B,KAAK,kBAAkB,EAExB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAE3B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,UAAU,EAAE,uBAAuB,CAAC;IAEpC,aAAa,EAAE,0BAA0B,CAAC;IAC1C,SAAS,EAAE,sBAAsB,CAAC;IAClC,QAAQ,EAAE,qBAAqB,CAAC;IAEhC,UAAU,EAAE,uBAAuB,CAAC;IACpC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,oBAAoB,CAAC;IAE9B,OAAO,EAAE,oBAAoB,CAAC;IAE9B,UAAU,EAAE,uBAAuB,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE,mBAAmB,GAAG,YAAY,CAgEpC"}
@@ -0,0 +1,39 @@
1
+ /** Mirrors Prisma `PromptType`. */
2
+ export declare const PromptType: {
3
+ readonly UNSPECIFIED: 0;
4
+ readonly TTS: 1;
5
+ readonly STT: 2;
6
+ readonly INTERVIEW: 3;
7
+ readonly INTERVIEW_SUMMARY: 4;
8
+ readonly INTERVIEW_EVALUATION: 5;
9
+ readonly UNRECOGNIZED: -1;
10
+ };
11
+ export type PromptType = typeof PromptType[keyof typeof PromptType];
12
+ export declare namespace PromptType {
13
+ type UNSPECIFIED = typeof PromptType.UNSPECIFIED;
14
+ type TTS = typeof PromptType.TTS;
15
+ type STT = typeof PromptType.STT;
16
+ type INTERVIEW = typeof PromptType.INTERVIEW;
17
+ type INTERVIEW_SUMMARY = typeof PromptType.INTERVIEW_SUMMARY;
18
+ type INTERVIEW_EVALUATION = typeof PromptType.INTERVIEW_EVALUATION;
19
+ type UNRECOGNIZED = typeof PromptType.UNRECOGNIZED;
20
+ }
21
+ export declare function promptTypeFromJSON(object: any): PromptType;
22
+ export declare function promptTypeToJSON(object: PromptType): string;
23
+ /** AI model provider used by prompts (Zod literal unions). */
24
+ export declare const Provider: {
25
+ readonly UNSPECIFIED: 0;
26
+ readonly GOOGLE: 1;
27
+ readonly OPENAI: 2;
28
+ readonly UNRECOGNIZED: -1;
29
+ };
30
+ export type Provider = typeof Provider[keyof typeof Provider];
31
+ export declare namespace Provider {
32
+ type UNSPECIFIED = typeof Provider.UNSPECIFIED;
33
+ type GOOGLE = typeof Provider.GOOGLE;
34
+ type OPENAI = typeof Provider.OPENAI;
35
+ type UNRECOGNIZED = typeof Provider.UNRECOGNIZED;
36
+ }
37
+ export declare function providerFromJSON(object: any): Provider;
38
+ export declare function providerToJSON(object: Provider): string;
39
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/gen/cognition/v1/enums.ts"],"names":[],"mappings":"AAQA,mCAAmC;AACnC,eAAO,MAAM,UAAU;;;;;;;;CAQb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEpE,yBAAiB,UAAU,CAAC;IAC1B,KAAY,WAAW,GAAG,OAAO,UAAU,CAAC,WAAW,CAAC;IACxD,KAAY,GAAG,GAAG,OAAO,UAAU,CAAC,GAAG,CAAC;IACxC,KAAY,GAAG,GAAG,OAAO,UAAU,CAAC,GAAG,CAAC;IACxC,KAAY,SAAS,GAAG,OAAO,UAAU,CAAC,SAAS,CAAC;IACpD,KAAY,iBAAiB,GAAG,OAAO,UAAU,CAAC,iBAAiB,CAAC;IACpE,KAAY,oBAAoB,GAAG,OAAO,UAAU,CAAC,oBAAoB,CAAC;IAC1E,KAAY,YAAY,GAAG,OAAO,UAAU,CAAC,YAAY,CAAC;CAC3D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,UAAU,CAyB1D;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAkB3D;AAED,8DAA8D;AAC9D,eAAO,MAAM,QAAQ;;;;;CAAsE,CAAC;AAE5F,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAE9D,yBAAiB,QAAQ,CAAC;IACxB,KAAY,WAAW,GAAG,OAAO,QAAQ,CAAC,WAAW,CAAC;IACtD,KAAY,MAAM,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC;IAC5C,KAAY,MAAM,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC;IAC5C,KAAY,YAAY,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;CACzD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAgBtD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAYvD"}
@@ -0,0 +1,335 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
3
+ import { AuditFields, PaginatedDataRequest } from "../../common/v1/common.js";
4
+ import { Language } from "../../common/v1/enums.js";
5
+ import { PromptType, Provider } from "./enums.js";
6
+ /** Fields shared by every prompt variant (basePromptSchema). */
7
+ export interface PromptBase {
8
+ type: PromptType;
9
+ name: string;
10
+ notes: string;
11
+ /** "en" | "ja" | null; LANGUAGE_UNSPECIFIED represents null. */
12
+ language: Language;
13
+ }
14
+ export interface GoogleTtsConfiguration {
15
+ /** One of googleTtsVoices. */
16
+ voice: string;
17
+ /** 0.25..4, default 1. */
18
+ speed: number;
19
+ }
20
+ export interface OpenAiTtsConfiguration {
21
+ /** One of openAiTtsVoices. */
22
+ voice: string;
23
+ /** 0.25..4, default 1. */
24
+ speed: number;
25
+ }
26
+ /** type = STT */
27
+ export interface SttProvider {
28
+ base: PromptBase | undefined;
29
+ provider: Provider;
30
+ /** googleSttModels | openAiSttModels depending on provider. */
31
+ model: string;
32
+ }
33
+ /** type = TTS */
34
+ export interface TtsProvider {
35
+ base: PromptBase | undefined;
36
+ provider: Provider;
37
+ /** Present only for openai. */
38
+ model?: string | undefined;
39
+ /** Present only for openai. */
40
+ prompt?: string | undefined;
41
+ google?: GoogleTtsConfiguration | undefined;
42
+ openai?: OpenAiTtsConfiguration | undefined;
43
+ }
44
+ /** type = INTERVIEW */
45
+ export interface LlmProvider {
46
+ base: PromptBase | undefined;
47
+ provider: Provider;
48
+ /** googleLllmModels | openAiLlmModels depending on provider. */
49
+ model: string;
50
+ prompt: string;
51
+ }
52
+ /** type = INTERVIEW_SUMMARY */
53
+ export interface SummaryProvider {
54
+ base: PromptBase | undefined;
55
+ provider: Provider;
56
+ model: string;
57
+ prompt: string;
58
+ }
59
+ /** type = INTERVIEW_EVALUATION */
60
+ export interface EvaluationProvider {
61
+ base: PromptBase | undefined;
62
+ provider: Provider;
63
+ model: string;
64
+ prompt: string;
65
+ }
66
+ /** updatePromptSchema: discriminated union over `type`. */
67
+ export interface PromptConfiguration {
68
+ stt?: SttProvider | undefined;
69
+ tts?: TtsProvider | undefined;
70
+ llm?: LlmProvider | undefined;
71
+ summary?: SummaryProvider | undefined;
72
+ evaluation?: EvaluationProvider | undefined;
73
+ }
74
+ /** queries.ts `PromptListItem`. */
75
+ export interface PromptListItem {
76
+ id: string;
77
+ type: PromptType;
78
+ name: string;
79
+ notes: string;
80
+ /** null -> LANGUAGE_UNSPECIFIED. */
81
+ language: Language;
82
+ provider: string;
83
+ model: string;
84
+ createdAt: Date | undefined;
85
+ }
86
+ /**
87
+ * queries.ts `PromptDetails` = Prisma Prompt (sans configuration) + the typed
88
+ * configuration union.
89
+ */
90
+ export interface PromptDetails {
91
+ id: string;
92
+ organizationId?: string | undefined;
93
+ configuration: PromptConfiguration | undefined;
94
+ audit: AuditFields | undefined;
95
+ }
96
+ /** queries.ts `getPromptAssignments` element. */
97
+ export interface PromptAssignment {
98
+ promptId: string;
99
+ type: PromptType;
100
+ name: string;
101
+ /** null -> LANGUAGE_UNSPECIFIED. */
102
+ language: Language;
103
+ organizationId?: string | undefined;
104
+ priority: number;
105
+ }
106
+ export interface PromptPage {
107
+ items: PromptListItem[];
108
+ count: number;
109
+ }
110
+ /** createPromptSchema. */
111
+ export interface CreatePromptRequest {
112
+ name: string;
113
+ type: PromptType;
114
+ }
115
+ export interface CreatePromptResponse {
116
+ promptId: string;
117
+ }
118
+ /** updatePromptSchema. */
119
+ export interface UpdatePromptRequest {
120
+ promptId: string;
121
+ configuration: PromptConfiguration | undefined;
122
+ }
123
+ /** Persisted Prompt (Prisma) returned by updatePrompt. */
124
+ export interface Prompt {
125
+ id: string;
126
+ organizationId?: string | undefined;
127
+ type: PromptType;
128
+ name: string;
129
+ notes: string;
130
+ provider: string;
131
+ model: string;
132
+ prompt: string;
133
+ /** null -> LANGUAGE_UNSPECIFIED. */
134
+ language: Language;
135
+ audit: AuditFields | undefined;
136
+ }
137
+ export interface DeletePromptRequest {
138
+ promptId: string;
139
+ }
140
+ /** A single org prompt assignment for updatePromptAssignments. */
141
+ export interface PromptAssignmentInput {
142
+ promptId: string;
143
+ priority: number;
144
+ }
145
+ export interface UpdatePromptAssignmentsRequest {
146
+ organizationId: string;
147
+ assignments: PromptAssignmentInput[];
148
+ }
149
+ export interface GetPromptsRequest {
150
+ pagination: PaginatedDataRequest | undefined;
151
+ }
152
+ export interface GetPromptRequest {
153
+ promptId: string;
154
+ }
155
+ export interface GetPromptAssignmentsResponse {
156
+ items: PromptAssignment[];
157
+ }
158
+ export interface UpdatePromptResponse {
159
+ prompt: Prompt | undefined;
160
+ }
161
+ export interface DeletePromptResponse {
162
+ }
163
+ export interface UpdatePromptAssignmentsResponse {
164
+ }
165
+ export interface GetPromptsResponse {
166
+ page: PromptPage | undefined;
167
+ }
168
+ export interface GetPromptResponse {
169
+ prompt: PromptDetails | undefined;
170
+ }
171
+ export interface GetPromptAssignmentsRequest {
172
+ }
173
+ export declare const PromptBase: MessageFns<PromptBase>;
174
+ export declare const GoogleTtsConfiguration: MessageFns<GoogleTtsConfiguration>;
175
+ export declare const OpenAiTtsConfiguration: MessageFns<OpenAiTtsConfiguration>;
176
+ export declare const SttProvider: MessageFns<SttProvider>;
177
+ export declare const TtsProvider: MessageFns<TtsProvider>;
178
+ export declare const LlmProvider: MessageFns<LlmProvider>;
179
+ export declare const SummaryProvider: MessageFns<SummaryProvider>;
180
+ export declare const EvaluationProvider: MessageFns<EvaluationProvider>;
181
+ export declare const PromptConfiguration: MessageFns<PromptConfiguration>;
182
+ export declare const PromptListItem: MessageFns<PromptListItem>;
183
+ export declare const PromptDetails: MessageFns<PromptDetails>;
184
+ export declare const PromptAssignment: MessageFns<PromptAssignment>;
185
+ export declare const PromptPage: MessageFns<PromptPage>;
186
+ export declare const CreatePromptRequest: MessageFns<CreatePromptRequest>;
187
+ export declare const CreatePromptResponse: MessageFns<CreatePromptResponse>;
188
+ export declare const UpdatePromptRequest: MessageFns<UpdatePromptRequest>;
189
+ export declare const Prompt: MessageFns<Prompt>;
190
+ export declare const DeletePromptRequest: MessageFns<DeletePromptRequest>;
191
+ export declare const PromptAssignmentInput: MessageFns<PromptAssignmentInput>;
192
+ export declare const UpdatePromptAssignmentsRequest: MessageFns<UpdatePromptAssignmentsRequest>;
193
+ export declare const GetPromptsRequest: MessageFns<GetPromptsRequest>;
194
+ export declare const GetPromptRequest: MessageFns<GetPromptRequest>;
195
+ export declare const GetPromptAssignmentsResponse: MessageFns<GetPromptAssignmentsResponse>;
196
+ export declare const UpdatePromptResponse: MessageFns<UpdatePromptResponse>;
197
+ export declare const DeletePromptResponse: MessageFns<DeletePromptResponse>;
198
+ export declare const UpdatePromptAssignmentsResponse: MessageFns<UpdatePromptAssignmentsResponse>;
199
+ export declare const GetPromptsResponse: MessageFns<GetPromptsResponse>;
200
+ export declare const GetPromptResponse: MessageFns<GetPromptResponse>;
201
+ export declare const GetPromptAssignmentsRequest: MessageFns<GetPromptAssignmentsRequest>;
202
+ export type PromptsServiceDefinition = typeof PromptsServiceDefinition;
203
+ export declare const PromptsServiceDefinition: {
204
+ readonly name: "PromptsService";
205
+ readonly fullName: "cognition.v1.PromptsService";
206
+ readonly methods: {
207
+ /** authz: super-admin (global) or org-admin (org-scoped) */
208
+ readonly createPrompt: {
209
+ readonly name: "CreatePrompt";
210
+ readonly requestType: typeof CreatePromptRequest;
211
+ readonly requestStream: false;
212
+ readonly responseType: typeof CreatePromptResponse;
213
+ readonly responseStream: false;
214
+ readonly options: {};
215
+ };
216
+ /** authz: super-admin (global) or org-admin (org-scoped) */
217
+ readonly updatePrompt: {
218
+ readonly name: "UpdatePrompt";
219
+ readonly requestType: typeof UpdatePromptRequest;
220
+ readonly requestStream: false;
221
+ readonly responseType: typeof UpdatePromptResponse;
222
+ readonly responseStream: false;
223
+ readonly options: {};
224
+ };
225
+ /**
226
+ * authz: super-admin (global) or org-admin (org-scoped).
227
+ * Fails with FAILED_PRECONDITION if in use by an organization or avatar
228
+ * (source DeletePromptError: inUseByOrganization | inUseByAvatar).
229
+ */
230
+ readonly deletePrompt: {
231
+ readonly name: "DeletePrompt";
232
+ readonly requestType: typeof DeletePromptRequest;
233
+ readonly requestStream: false;
234
+ readonly responseType: typeof DeletePromptResponse;
235
+ readonly responseStream: false;
236
+ readonly options: {};
237
+ };
238
+ /** authz: super-admin (all) or org-admin (org-owned only) */
239
+ readonly updatePromptAssignments: {
240
+ readonly name: "UpdatePromptAssignments";
241
+ readonly requestType: typeof UpdatePromptAssignmentsRequest;
242
+ readonly requestStream: false;
243
+ readonly responseType: typeof UpdatePromptAssignmentsResponse;
244
+ readonly responseStream: false;
245
+ readonly options: {};
246
+ };
247
+ /** authz: super-admin (global) or org-admin (org-scoped) */
248
+ readonly getPrompts: {
249
+ readonly name: "GetPrompts";
250
+ readonly requestType: typeof GetPromptsRequest;
251
+ readonly requestStream: false;
252
+ readonly responseType: typeof GetPromptsResponse;
253
+ readonly responseStream: false;
254
+ readonly options: {};
255
+ };
256
+ /** authz: super-admin (global) or org-admin (org-scoped) */
257
+ readonly getPrompt: {
258
+ readonly name: "GetPrompt";
259
+ readonly requestType: typeof GetPromptRequest;
260
+ readonly requestStream: false;
261
+ readonly responseType: typeof GetPromptResponse;
262
+ readonly responseStream: false;
263
+ readonly options: {};
264
+ };
265
+ /** authz: org-admin */
266
+ readonly getPromptAssignments: {
267
+ readonly name: "GetPromptAssignments";
268
+ readonly requestType: typeof GetPromptAssignmentsRequest;
269
+ readonly requestStream: false;
270
+ readonly responseType: typeof GetPromptAssignmentsResponse;
271
+ readonly responseStream: false;
272
+ readonly options: {};
273
+ };
274
+ };
275
+ };
276
+ export interface PromptsServiceImplementation<CallContextExt = {}> {
277
+ /** authz: super-admin (global) or org-admin (org-scoped) */
278
+ createPrompt(request: CreatePromptRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CreatePromptResponse>>;
279
+ /** authz: super-admin (global) or org-admin (org-scoped) */
280
+ updatePrompt(request: UpdatePromptRequest, context: CallContext & CallContextExt): Promise<DeepPartial<UpdatePromptResponse>>;
281
+ /**
282
+ * authz: super-admin (global) or org-admin (org-scoped).
283
+ * Fails with FAILED_PRECONDITION if in use by an organization or avatar
284
+ * (source DeletePromptError: inUseByOrganization | inUseByAvatar).
285
+ */
286
+ deletePrompt(request: DeletePromptRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeletePromptResponse>>;
287
+ /** authz: super-admin (all) or org-admin (org-owned only) */
288
+ updatePromptAssignments(request: UpdatePromptAssignmentsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<UpdatePromptAssignmentsResponse>>;
289
+ /** authz: super-admin (global) or org-admin (org-scoped) */
290
+ getPrompts(request: GetPromptsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetPromptsResponse>>;
291
+ /** authz: super-admin (global) or org-admin (org-scoped) */
292
+ getPrompt(request: GetPromptRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetPromptResponse>>;
293
+ /** authz: org-admin */
294
+ getPromptAssignments(request: GetPromptAssignmentsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetPromptAssignmentsResponse>>;
295
+ }
296
+ export interface PromptsServiceClient<CallOptionsExt = {}> {
297
+ /** authz: super-admin (global) or org-admin (org-scoped) */
298
+ createPrompt(request: DeepPartial<CreatePromptRequest>, options?: CallOptions & CallOptionsExt): Promise<CreatePromptResponse>;
299
+ /** authz: super-admin (global) or org-admin (org-scoped) */
300
+ updatePrompt(request: DeepPartial<UpdatePromptRequest>, options?: CallOptions & CallOptionsExt): Promise<UpdatePromptResponse>;
301
+ /**
302
+ * authz: super-admin (global) or org-admin (org-scoped).
303
+ * Fails with FAILED_PRECONDITION if in use by an organization or avatar
304
+ * (source DeletePromptError: inUseByOrganization | inUseByAvatar).
305
+ */
306
+ deletePrompt(request: DeepPartial<DeletePromptRequest>, options?: CallOptions & CallOptionsExt): Promise<DeletePromptResponse>;
307
+ /** authz: super-admin (all) or org-admin (org-owned only) */
308
+ updatePromptAssignments(request: DeepPartial<UpdatePromptAssignmentsRequest>, options?: CallOptions & CallOptionsExt): Promise<UpdatePromptAssignmentsResponse>;
309
+ /** authz: super-admin (global) or org-admin (org-scoped) */
310
+ getPrompts(request: DeepPartial<GetPromptsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetPromptsResponse>;
311
+ /** authz: super-admin (global) or org-admin (org-scoped) */
312
+ getPrompt(request: DeepPartial<GetPromptRequest>, options?: CallOptions & CallOptionsExt): Promise<GetPromptResponse>;
313
+ /** authz: org-admin */
314
+ getPromptAssignments(request: DeepPartial<GetPromptAssignmentsRequest>, options?: CallOptions & CallOptionsExt): Promise<GetPromptAssignmentsResponse>;
315
+ }
316
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
317
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
318
+ [K in keyof T]?: DeepPartial<T[K]>;
319
+ } : Partial<T>;
320
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
321
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
322
+ [K in keyof P]: Exact<P[K], I[K]>;
323
+ } & {
324
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
325
+ };
326
+ interface MessageFns<T> {
327
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
328
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
329
+ fromJSON(object: any): T;
330
+ toJSON(message: T): unknown;
331
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
332
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
333
+ }
334
+ export {};
335
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../src/gen/cognition/v1/prompts.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAoC,MAAM,0BAA0B,CAAC;AAEtF,OAAO,EACL,UAAU,EAGV,QAAQ,EAGT,MAAM,YAAY,CAAC;AAEpB,gEAAgE;AAChE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iBAAiB;AACjB,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,QAAQ,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AAG,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,60 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { SortDirection, SortNulls } from "./enums.js";
3
+ /** Sort instruction. Mirrors core/types.ts `Sort`. */
4
+ export interface Sort {
5
+ field: string;
6
+ direction: SortDirection;
7
+ /** Optional null ordering. SORT_NULLS_UNSPECIFIED means "unset". */
8
+ nulls: SortNulls;
9
+ }
10
+ /** Simple equality filter. Mirrors core/types.ts `Filter`. */
11
+ export interface Filter {
12
+ field: string;
13
+ value: string;
14
+ }
15
+ /**
16
+ * Pagination request shared by all `get*` list RPCs.
17
+ * Mirrors core/types.ts `PaginatedDataRequest` with skip/take -> offset/limit.
18
+ */
19
+ export interface PaginatedDataRequest {
20
+ offset: number;
21
+ limit: number;
22
+ sort: Sort[];
23
+ filters: Filter[];
24
+ }
25
+ /**
26
+ * Common soft-delete + auditing fields present on every Prisma model.
27
+ * `created_by`, `deleted_at`, `deleted_by` are nullable in the source and use
28
+ * proto3 explicit presence (`optional`).
29
+ */
30
+ export interface AuditFields {
31
+ createdAt: Date | undefined;
32
+ createdBy?: string | undefined;
33
+ updatedAt: Date | undefined;
34
+ deletedAt?: Date | undefined;
35
+ deletedBy?: string | undefined;
36
+ }
37
+ export declare const Sort: MessageFns<Sort>;
38
+ export declare const Filter: MessageFns<Filter>;
39
+ export declare const PaginatedDataRequest: MessageFns<PaginatedDataRequest>;
40
+ export declare const AuditFields: MessageFns<AuditFields>;
41
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
42
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
43
+ [K in keyof T]?: DeepPartial<T[K]>;
44
+ } : Partial<T>;
45
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
46
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
47
+ [K in keyof P]: Exact<P[K], I[K]>;
48
+ } & {
49
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
50
+ };
51
+ interface MessageFns<T> {
52
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
53
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
54
+ fromJSON(object: any): T;
55
+ toJSON(message: T): unknown;
56
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
57
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
58
+ }
59
+ export {};
60
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/gen/common/v1/common.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EACL,aAAa,EAGb,SAAS,EAGV,MAAM,YAAY,CAAC;AAEpB,sDAAsD;AACtD,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;IACzB,oEAAoE;IACpE,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,8DAA8D;AAC9D,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,S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AAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AA4BnG,UAAU,UAAU,CAAC,CAAC;IACpB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,49 @@
1
+ /** Mirrors the `Language` Zod schema ("en" | "ja"). Used across multiple modules. */
2
+ export declare const Language: {
3
+ readonly UNSPECIFIED: 0;
4
+ readonly EN: 1;
5
+ readonly JA: 2;
6
+ readonly UNRECOGNIZED: -1;
7
+ };
8
+ export type Language = typeof Language[keyof typeof Language];
9
+ export declare namespace Language {
10
+ type UNSPECIFIED = typeof Language.UNSPECIFIED;
11
+ type EN = typeof Language.EN;
12
+ type JA = typeof Language.JA;
13
+ type UNRECOGNIZED = typeof Language.UNRECOGNIZED;
14
+ }
15
+ export declare function languageFromJSON(object: any): Language;
16
+ export declare function languageToJSON(object: Language): string;
17
+ /** Sort direction for paginated requests (core/types.ts `Sort.direction`). */
18
+ export declare const SortDirection: {
19
+ readonly UNSPECIFIED: 0;
20
+ readonly ASC: 1;
21
+ readonly DESC: 2;
22
+ readonly UNRECOGNIZED: -1;
23
+ };
24
+ export type SortDirection = typeof SortDirection[keyof typeof SortDirection];
25
+ export declare namespace SortDirection {
26
+ type UNSPECIFIED = typeof SortDirection.UNSPECIFIED;
27
+ type ASC = typeof SortDirection.ASC;
28
+ type DESC = typeof SortDirection.DESC;
29
+ type UNRECOGNIZED = typeof SortDirection.UNRECOGNIZED;
30
+ }
31
+ export declare function sortDirectionFromJSON(object: any): SortDirection;
32
+ export declare function sortDirectionToJSON(object: SortDirection): string;
33
+ /** Null ordering for paginated requests (core/types.ts `Sort.nulls`). */
34
+ export declare const SortNulls: {
35
+ readonly UNSPECIFIED: 0;
36
+ readonly FIRST: 1;
37
+ readonly LAST: 2;
38
+ readonly UNRECOGNIZED: -1;
39
+ };
40
+ export type SortNulls = typeof SortNulls[keyof typeof SortNulls];
41
+ export declare namespace SortNulls {
42
+ type UNSPECIFIED = typeof SortNulls.UNSPECIFIED;
43
+ type FIRST = typeof SortNulls.FIRST;
44
+ type LAST = typeof SortNulls.LAST;
45
+ type UNRECOGNIZED = typeof SortNulls.UNRECOGNIZED;
46
+ }
47
+ export declare function sortNullsFromJSON(object: any): SortNulls;
48
+ export declare function sortNullsToJSON(object: SortNulls): string;
49
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/gen/common/v1/enums.ts"],"names":[],"mappings":"AAQA,qFAAqF;AACrF,eAAO,MAAM,QAAQ;;;;;CAA8D,CAAC;AAEpF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAE9D,yBAAiB,QAAQ,CAAC;IACxB,KAAY,WAAW,GAAG,OAAO,QAAQ,CAAC,WAAW,CAAC;IACtD,KAAY,EAAE,GAAG,OAAO,QAAQ,CAAC,EAAE,CAAC;IACpC,KAAY,EAAE,GAAG,OAAO,QAAQ,CAAC,EAAE,CAAC;IACpC,KAAY,YAAY,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;CACzD;AAED,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