@tailor-platform/sdk 2.36.0 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +132 -0
- package/dist/{application-DaJbleMi.mjs → application-Bz80INH4.mjs} +1 -1
- package/dist/application-CeqD1OK-.mjs +207 -0
- package/dist/application-CeqD1OK-.mjs.map +1 -0
- package/dist/cli/commands/deploy/deploy.d.mts +7 -1
- package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +3 -0
- package/dist/cli/commands/executor/jobs.d.mts +3 -0
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -0
- package/dist/cli/commands/tailordb/migrate/config.d.mts +4 -0
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +10 -0
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +28 -2
- package/dist/cli/commands/tailordb/migrate/hints.d.mts +1 -0
- package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +3 -0
- package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +3 -1
- package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +4 -0
- package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +44 -6
- package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +2 -0
- package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +2 -0
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +8 -0
- package/dist/cli/commands/tailordb/migrate/types.d.mts +2 -0
- package/dist/cli/commands/workspace/create.d.mts +1 -1
- package/dist/cli/lib.d.mts +3 -3
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +65 -58
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/shared/args.d.mts +14 -5
- package/dist/cli/shared/client.d.mts +40 -3
- package/dist/cli/shared/error-json.d.mts +12 -26
- package/dist/cli/shared/function-execution.d.mts +2 -0
- package/dist/cli/shared/prompt.d.mts +9 -4
- package/dist/client-CHXix4LD.mjs +1 -0
- package/dist/client-DOQv-BP8.mjs +2 -0
- package/dist/client-DOQv-BP8.mjs.map +1 -0
- package/dist/completion/zsh-worker.zsh +151 -79
- package/dist/configure/config/index.d.mts +2 -0
- package/dist/configure/config/types.d.mts +2 -0
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/executor/operation.d.mts +5 -4
- package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -1
- package/dist/configure/services/index.d.mts +0 -1
- package/dist/configure/services/tailordb/schema.d.mts +1 -0
- package/dist/configure/services/tailordb/types.d.mts +12 -0
- package/dist/context-DSi5kfqr.mjs +23 -0
- package/dist/context-DSi5kfqr.mjs.map +1 -0
- package/dist/context-OOASEQLA.mjs +1 -0
- package/dist/{crashreport-DGU6lwiX.mjs → crashreport-CQTAlnbA.mjs} +4 -4
- package/dist/{crashreport-DGU6lwiX.mjs.map → crashreport-CQTAlnbA.mjs.map} +1 -1
- package/dist/crashreport-GRnWyDnF.mjs +1 -0
- package/dist/date-representation-Cr7W7Pn2.mjs.map +1 -1
- package/dist/{errors-BXmGBX-7.mjs → errors-9OOL3xOM.mjs} +6 -5
- package/dist/errors-9OOL3xOM.mjs.map +1 -0
- package/dist/field_behavior_pb-B196sUx6.mjs +2 -0
- package/dist/field_behavior_pb-B196sUx6.mjs.map +1 -0
- package/dist/{kysely-type-B0ri1-Xs.mjs → kysely-type-DhAZqdQg.mjs} +14 -10
- package/dist/kysely-type-DhAZqdQg.mjs.map +1 -0
- package/dist/notification_resource_pb-BZ0hCA01.mjs +1 -0
- package/dist/notification_resource_pb-Dwzah7gO.mjs +2 -0
- package/dist/notification_resource_pb-Dwzah7gO.mjs.map +1 -0
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/seed-type-processor.d.mts +4 -3
- package/dist/plugin/get-generated-table.d.mts +4 -0
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/types.d.mts +55 -3
- package/dist/plugin/with-context.d.mts +16 -0
- package/dist/register-ts-hook-CXYYYgCl.mjs +1094 -0
- package/dist/register-ts-hook-CXYYYgCl.mjs.map +1 -0
- package/dist/repl-editor-Bposemei.mjs +2 -0
- package/dist/repl-editor-Bposemei.mjs.map +1 -0
- package/dist/resource_pb-elY668ZB.mjs +2 -0
- package/dist/resource_pb-elY668ZB.mjs.map +1 -0
- package/dist/schema-BU1aIQ63.mjs.map +1 -1
- package/dist/{secret-file-BxZ-J_Nz.mjs → secret-file-CSXzcg4c.mjs} +2 -2
- package/dist/{secret-file-BxZ-J_Nz.mjs.map → secret-file-CSXzcg4c.mjs.map} +1 -1
- package/dist/{service-CaGmqg0r.mjs → service-B2vx6CGM.mjs} +2 -2
- package/dist/{service-CaGmqg0r.mjs.map → service-B2vx6CGM.mjs.map} +1 -1
- package/dist/service-DB-RHn25.mjs +9 -0
- package/dist/service-DB-RHn25.mjs.map +1 -0
- package/dist/service-DsAWXbVX.mjs +1 -0
- package/dist/service_pb-Bethc2NW.mjs +1 -0
- package/dist/service_pb-CfpSriCy.mjs +2 -0
- package/dist/service_pb-CfpSriCy.mjs.map +1 -0
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +3 -3
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +92 -0
- package/dist/tailor-proto/src/tailor/v1/notification_pb.d.mts +176 -0
- package/dist/tailor-proto/src/tailor/v1/notification_resource_pb.d.mts +172 -0
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +78 -0
- package/dist/types/app-config.generated.d.mts +1 -1
- package/dist/types/auth-connection.generated.d.mts +2 -2
- package/dist/types/auth.generated.d.mts +13 -13
- package/dist/types/executor.generated.d.mts +25 -25
- package/dist/types/field.generated.d.mts +2 -2
- package/dist/types/http-adapter.generated.d.mts +4 -4
- package/dist/types/idp.generated.d.mts +272 -272
- package/dist/types/resolver.generated.d.mts +10 -10
- package/dist/types/tailordb.generated.d.mts +84 -80
- package/dist/types/workflow.generated.d.mts +2 -2
- package/dist/validation-errors-DqCeUW4L.mjs +3 -0
- package/dist/validation-errors-DqCeUW4L.mjs.map +1 -0
- package/{LICENSE → dist/vendor/graphql/LICENSE} +6 -6
- package/dist/vendor/graphql/language/KindTypeMap.d.mts +3 -0
- package/dist/vendor/graphql/language/ast.d.mts +784 -0
- package/dist/vendor/graphql/language/kinds_.d.mts +203 -0
- package/dist/vendor/graphql/language/source.d.mts +46 -0
- package/dist/vendor/graphql/language/tokenKind.d.mts +35 -0
- package/dist/vitest/date-representation.d.mts +2 -0
- package/dist/vitest/environment.d.mts +1 -0
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/migration-steps.d.mts +13 -2
- package/dist/vitest/mock-kysely.d.mts +12 -2
- package/dist/vitest/mocks/aigateway.d.mts +7 -1
- package/dist/vitest/mocks/authconnection.d.mts +7 -1
- package/dist/vitest/mocks/file.d.mts +8 -2
- package/dist/vitest/mocks/iconv.d.mts +7 -1
- package/dist/vitest/mocks/idp.d.mts +7 -1
- package/dist/vitest/mocks/logger.d.mts +7 -1
- package/dist/vitest/mocks/secretmanager.d.mts +7 -1
- package/dist/vitest/mocks/tailordb-pglite.d.mts +12 -2
- package/dist/vitest/mocks/tailordb.d.mts +22 -4
- package/dist/vitest/mocks/workflow.d.mts +2 -1
- package/dist/vitest/pglite-kysely.d.mts +18 -2
- package/dist/vitest/pglite-temporal.d.mts +5 -1
- package/dist/vitest/workflow-local.d.mts +7 -0
- package/dist/workspace_resource_pb-Cow7mrJY.mjs +2 -0
- package/dist/workspace_resource_pb-Cow7mrJY.mjs.map +1 -0
- package/docs/cli/application.md +63 -29
- package/docs/cli/executor.md +2 -0
- package/docs/cli/function.md +3 -1
- package/docs/cli/notification.md +128 -0
- package/docs/cli/tailordb.md +45 -68
- package/docs/cli/workflow.md +2 -0
- package/docs/cli/workspace.md +20 -18
- package/docs/cli-reference.md +231 -50
- package/docs/configuration.md +2 -2
- package/docs/data-clone.md +1 -1
- package/docs/github-actions.md +266 -41
- package/docs/plugin/custom.md +4 -4
- package/docs/runtime.md +1 -1
- package/docs/services/auth.md +2 -0
- package/docs/services/idp.md +2 -0
- package/docs/services/tailordb/index.md +13 -4
- package/docs/services/tailordb/migration.md +109 -71
- package/docs/services/workflow.md +1 -1
- package/docs/testing.md +9 -10
- package/package.json +23 -19
- package/dist/application-BbORWCj-.mjs +0 -207
- package/dist/application-BbORWCj-.mjs.map +0 -1
- package/dist/configure/services/http-adapter/index.d.mts +0 -2
- package/dist/crashreport-WsYAWARW.mjs +0 -1
- package/dist/errors-BXmGBX-7.mjs.map +0 -1
- package/dist/kysely-type-B0ri1-Xs.mjs.map +0 -1
- package/dist/register-ts-hook-iAcG1dfz.mjs +0 -1057
- package/dist/register-ts-hook-iAcG1dfz.mjs.map +0 -1
- package/dist/repl-editor-DkrCZmmg.mjs +0 -2
- package/dist/repl-editor-DkrCZmmg.mjs.map +0 -1
- package/dist/service-DTrVVaDJ.mjs +0 -1
- package/dist/service-hIarp2Gl.mjs +0 -8
- package/dist/service-hIarp2Gl.mjs.map +0 -1
- package/dist/service_pb-6EkMfdOb.mjs +0 -2
- package/dist/service_pb-6EkMfdOb.mjs.map +0 -1
- package/dist/service_pb-CsJKokDl.mjs +0 -1
- package/dist/workspace_resource_pb-C4CkoYww.mjs +0 -2
- package/dist/workspace_resource_pb-C4CkoYww.mjs.map +0 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { PageDirection } from "./resource_pb.mjs";
|
|
2
|
+
import { Notification, NotificationCategory, NotificationSeverity } from "./notification_resource_pb.mjs";
|
|
3
|
+
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* @generated from message tailor.v1.ListMyNotificationsRequest
|
|
7
|
+
*/
|
|
8
|
+
export declare type ListMyNotificationsRequest = Message<"tailor.v1.ListMyNotificationsRequest"> & {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from field: string page_token = 1;
|
|
11
|
+
*/
|
|
12
|
+
pageToken: string;
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: uint32 page_size = 2;
|
|
15
|
+
*/
|
|
16
|
+
pageSize: number;
|
|
17
|
+
/**
|
|
18
|
+
* Default DESC: newest arrival first.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: tailor.v1.PageDirection page_direction = 3;
|
|
21
|
+
*/
|
|
22
|
+
pageDirection: PageDirection;
|
|
23
|
+
/**
|
|
24
|
+
* Optional filters. Zero values mean no filter.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: tailor.v1.NotificationCategory category = 4;
|
|
27
|
+
*/
|
|
28
|
+
category: NotificationCategory;
|
|
29
|
+
/**
|
|
30
|
+
* Minimum severity, inclusive.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: tailor.v1.NotificationSeverity min_severity = 5;
|
|
33
|
+
*/
|
|
34
|
+
minSeverity: NotificationSeverity;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: bool unread_only = 6;
|
|
37
|
+
*/
|
|
38
|
+
unreadOnly: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Only notifications about this workspace (scope_refs). A display filter,
|
|
41
|
+
* not authorization.
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: string scope_workspace_id = 7;
|
|
44
|
+
*/
|
|
45
|
+
scopeWorkspaceId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Only notifications about this organization (scope_refs).
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: string scope_organization_id = 8;
|
|
50
|
+
*/
|
|
51
|
+
scopeOrganizationId: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message tailor.v1.ListMyNotificationsRequest.
|
|
55
|
+
* Use `create(ListMyNotificationsRequestSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ListMyNotificationsRequestSchema: GenMessage<ListMyNotificationsRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message tailor.v1.ListMyNotificationsResponse
|
|
60
|
+
*/
|
|
61
|
+
export declare type ListMyNotificationsResponse = Message<"tailor.v1.ListMyNotificationsResponse"> & {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: repeated tailor.v1.Notification notifications = 1;
|
|
64
|
+
*/
|
|
65
|
+
notifications: Notification[];
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: string next_page_token = 2;
|
|
68
|
+
*/
|
|
69
|
+
nextPageToken: string;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: int64 total_count = 3;
|
|
72
|
+
*/
|
|
73
|
+
totalCount: bigint;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message tailor.v1.ListMyNotificationsResponse.
|
|
77
|
+
* Use `create(ListMyNotificationsResponseSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export declare const ListMyNotificationsResponseSchema: GenMessage<ListMyNotificationsResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message tailor.v1.GetMyNotificationRequest
|
|
82
|
+
*/
|
|
83
|
+
export declare type GetMyNotificationRequest = Message<"tailor.v1.GetMyNotificationRequest"> & {
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: string notification_id = 1;
|
|
86
|
+
*/
|
|
87
|
+
notificationId: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message tailor.v1.GetMyNotificationRequest.
|
|
91
|
+
* Use `create(GetMyNotificationRequestSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export declare const GetMyNotificationRequestSchema: GenMessage<GetMyNotificationRequest>;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from message tailor.v1.GetMyNotificationResponse
|
|
96
|
+
*/
|
|
97
|
+
export declare type GetMyNotificationResponse = Message<"tailor.v1.GetMyNotificationResponse"> & {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: tailor.v1.Notification notification = 1;
|
|
100
|
+
*/
|
|
101
|
+
notification?: Notification;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message tailor.v1.GetMyNotificationResponse.
|
|
105
|
+
* Use `create(GetMyNotificationResponseSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const GetMyNotificationResponseSchema: GenMessage<GetMyNotificationResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message tailor.v1.CountMyUnreadNotificationsRequest
|
|
110
|
+
*/
|
|
111
|
+
export declare type CountMyUnreadNotificationsRequest = Message<"tailor.v1.CountMyUnreadNotificationsRequest"> & {};
|
|
112
|
+
/**
|
|
113
|
+
* Describes the message tailor.v1.CountMyUnreadNotificationsRequest.
|
|
114
|
+
* Use `create(CountMyUnreadNotificationsRequestSchema)` to create a new message.
|
|
115
|
+
*/
|
|
116
|
+
export declare const CountMyUnreadNotificationsRequestSchema: GenMessage<CountMyUnreadNotificationsRequest>;
|
|
117
|
+
/**
|
|
118
|
+
* @generated from message tailor.v1.CountMyUnreadNotificationsResponse
|
|
119
|
+
*/
|
|
120
|
+
export declare type CountMyUnreadNotificationsResponse = Message<"tailor.v1.CountMyUnreadNotificationsResponse"> & {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: int64 unread_count = 1;
|
|
123
|
+
*/
|
|
124
|
+
unreadCount: bigint;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Describes the message tailor.v1.CountMyUnreadNotificationsResponse.
|
|
128
|
+
* Use `create(CountMyUnreadNotificationsResponseSchema)` to create a new message.
|
|
129
|
+
*/
|
|
130
|
+
export declare const CountMyUnreadNotificationsResponseSchema: GenMessage<CountMyUnreadNotificationsResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from message tailor.v1.MarkMyNotificationsReadRequest
|
|
133
|
+
*/
|
|
134
|
+
export declare type MarkMyNotificationsReadRequest = Message<"tailor.v1.MarkMyNotificationsReadRequest"> & {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: repeated string notification_ids = 1;
|
|
137
|
+
*/
|
|
138
|
+
notificationIds: string[];
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Describes the message tailor.v1.MarkMyNotificationsReadRequest.
|
|
142
|
+
* Use `create(MarkMyNotificationsReadRequestSchema)` to create a new message.
|
|
143
|
+
*/
|
|
144
|
+
export declare const MarkMyNotificationsReadRequestSchema: GenMessage<MarkMyNotificationsReadRequest>;
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message tailor.v1.MarkMyNotificationsReadResponse
|
|
147
|
+
*/
|
|
148
|
+
export declare type MarkMyNotificationsReadResponse = Message<"tailor.v1.MarkMyNotificationsReadResponse"> & {};
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message tailor.v1.MarkMyNotificationsReadResponse.
|
|
151
|
+
* Use `create(MarkMyNotificationsReadResponseSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export declare const MarkMyNotificationsReadResponseSchema: GenMessage<MarkMyNotificationsReadResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from message tailor.v1.DismissMyNotificationRequest
|
|
156
|
+
*/
|
|
157
|
+
export declare type DismissMyNotificationRequest = Message<"tailor.v1.DismissMyNotificationRequest"> & {
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string notification_id = 1;
|
|
160
|
+
*/
|
|
161
|
+
notificationId: string;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Describes the message tailor.v1.DismissMyNotificationRequest.
|
|
165
|
+
* Use `create(DismissMyNotificationRequestSchema)` to create a new message.
|
|
166
|
+
*/
|
|
167
|
+
export declare const DismissMyNotificationRequestSchema: GenMessage<DismissMyNotificationRequest>;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from message tailor.v1.DismissMyNotificationResponse
|
|
170
|
+
*/
|
|
171
|
+
export declare type DismissMyNotificationResponse = Message<"tailor.v1.DismissMyNotificationResponse"> & {};
|
|
172
|
+
/**
|
|
173
|
+
* Describes the message tailor.v1.DismissMyNotificationResponse.
|
|
174
|
+
* Use `create(DismissMyNotificationResponseSchema)` to create a new message.
|
|
175
|
+
*/
|
|
176
|
+
export declare const DismissMyNotificationResponseSchema: GenMessage<DismissMyNotificationResponse>;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import { Message } from "@bufbuild/protobuf";
|
|
3
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
/**
|
|
5
|
+
* NotificationAction is a CTA link. At most 3 per notification.
|
|
6
|
+
*
|
|
7
|
+
* @generated from message tailor.v1.NotificationAction
|
|
8
|
+
*/
|
|
9
|
+
export declare type NotificationAction = Message<"tailor.v1.NotificationAction"> & {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from field: string label = 1;
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* https:// URL or an absolute same-origin path (/...).
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: string url = 2;
|
|
18
|
+
*/
|
|
19
|
+
url: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* NotificationScopeRef says what the notification is about. A display filter
|
|
23
|
+
* for the reader, never a basis for authorization.
|
|
24
|
+
*
|
|
25
|
+
* @generated from message tailor.v1.NotificationScopeRef
|
|
26
|
+
*/
|
|
27
|
+
export declare type NotificationScopeRef = Message<"tailor.v1.NotificationScopeRef"> & {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from oneof tailor.v1.NotificationScopeRef.ref
|
|
30
|
+
*/
|
|
31
|
+
ref: {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string workspace_id = 1;
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
case: "workspaceId";
|
|
37
|
+
} | {
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: string organization_id = 2;
|
|
40
|
+
*/
|
|
41
|
+
value: string;
|
|
42
|
+
case: "organizationId";
|
|
43
|
+
} | {
|
|
44
|
+
/**
|
|
45
|
+
* Platform region label, e.g. "asia-northeast".
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string region = 3;
|
|
48
|
+
*/
|
|
49
|
+
value: string;
|
|
50
|
+
case: "region";
|
|
51
|
+
} | {
|
|
52
|
+
case: undefined;
|
|
53
|
+
value?: undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Notification is one inbox entry as seen by its recipient. It carries the
|
|
58
|
+
* content only: who sent it and who else received it are not exposed here.
|
|
59
|
+
*
|
|
60
|
+
* @generated from message tailor.v1.Notification
|
|
61
|
+
*/
|
|
62
|
+
export declare type Notification = Message<"tailor.v1.Notification"> & {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: string id = 1;
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: tailor.v1.NotificationCategory category = 2;
|
|
69
|
+
*/
|
|
70
|
+
category: NotificationCategory;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: tailor.v1.NotificationSeverity severity = 3;
|
|
73
|
+
*/
|
|
74
|
+
severity: NotificationSeverity;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string title = 4;
|
|
77
|
+
*/
|
|
78
|
+
title: string;
|
|
79
|
+
/**
|
|
80
|
+
* CommonMark plus GFM tables, strikethrough, and task lists; never raw HTML
|
|
81
|
+
* or images. Render with a CommonMark renderer that has those extensions
|
|
82
|
+
* enabled and linkify disabled.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: string body_markdown = 5;
|
|
85
|
+
*/
|
|
86
|
+
bodyMarkdown: string;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: repeated tailor.v1.NotificationAction actions = 6;
|
|
89
|
+
*/
|
|
90
|
+
actions: NotificationAction[];
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: repeated tailor.v1.NotificationScopeRef scope_refs = 7;
|
|
93
|
+
*/
|
|
94
|
+
scopeRefs: NotificationScopeRef[];
|
|
95
|
+
/**
|
|
96
|
+
* When the notification reached this recipient. The inbox is ordered by this.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: google.protobuf.Timestamp arrived_at = 8;
|
|
99
|
+
*/
|
|
100
|
+
arrivedAt?: Timestamp;
|
|
101
|
+
/**
|
|
102
|
+
* Unset while unread.
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: google.protobuf.Timestamp read_at = 9;
|
|
105
|
+
*/
|
|
106
|
+
readAt?: Timestamp;
|
|
107
|
+
/**
|
|
108
|
+
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
|
109
|
+
*/
|
|
110
|
+
createdAt?: Timestamp;
|
|
111
|
+
/**
|
|
112
|
+
* Unset when the notification has no expiry.
|
|
113
|
+
*
|
|
114
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 11;
|
|
115
|
+
*/
|
|
116
|
+
expiresAt?: Timestamp;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* NotificationCategory is what kind of notice this is.
|
|
120
|
+
*
|
|
121
|
+
* @generated from enum tailor.v1.NotificationCategory
|
|
122
|
+
*/
|
|
123
|
+
export declare enum NotificationCategory {
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum value: NOTIFICATION_CATEGORY_UNSPECIFIED = 0;
|
|
126
|
+
*/
|
|
127
|
+
UNSPECIFIED = 0,
|
|
128
|
+
/**
|
|
129
|
+
* the user must act
|
|
130
|
+
*
|
|
131
|
+
* @generated from enum value: NOTIFICATION_CATEGORY_ALERT = 1;
|
|
132
|
+
*/
|
|
133
|
+
ALERT = 1,
|
|
134
|
+
/**
|
|
135
|
+
* a platform failure
|
|
136
|
+
*
|
|
137
|
+
* @generated from enum value: NOTIFICATION_CATEGORY_INCIDENT = 2;
|
|
138
|
+
*/
|
|
139
|
+
INCIDENT = 2,
|
|
140
|
+
/**
|
|
141
|
+
* @generated from enum value: NOTIFICATION_CATEGORY_MAINTENANCE = 3;
|
|
142
|
+
*/
|
|
143
|
+
MAINTENANCE = 3,
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: NOTIFICATION_CATEGORY_ANNOUNCEMENT = 4;
|
|
146
|
+
*/
|
|
147
|
+
ANNOUNCEMENT = 4
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* NotificationSeverity drives the Console badge colour and whether the SDK
|
|
151
|
+
* CLI prints the notification after a command (WARNING and above).
|
|
152
|
+
*
|
|
153
|
+
* @generated from enum tailor.v1.NotificationSeverity
|
|
154
|
+
*/
|
|
155
|
+
export declare enum NotificationSeverity {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from enum value: NOTIFICATION_SEVERITY_UNSPECIFIED = 0;
|
|
158
|
+
*/
|
|
159
|
+
UNSPECIFIED = 0,
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: NOTIFICATION_SEVERITY_INFO = 1;
|
|
162
|
+
*/
|
|
163
|
+
INFO = 1,
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: NOTIFICATION_SEVERITY_WARNING = 2;
|
|
166
|
+
*/
|
|
167
|
+
WARNING = 2,
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: NOTIFICATION_SEVERITY_CRITICAL = 3;
|
|
170
|
+
*/
|
|
171
|
+
CRITICAL = 3
|
|
172
|
+
}
|
|
@@ -17,6 +17,7 @@ import { AcceptCustomDomainTransferRequestSchema, AcceptCustomDomainTransferResp
|
|
|
17
17
|
import { CancelWorkflowExecutionRequestSchema, CancelWorkflowExecutionResponseSchema, CreateWorkflowJobFunctionExecutionPolicyRequestSchema, CreateWorkflowJobFunctionExecutionPolicyResponseSchema, CreateWorkflowJobFunctionRequestSchema, CreateWorkflowJobFunctionResponseSchema, CreateWorkflowRequestSchema, CreateWorkflowResponseSchema, DeleteWorkflowJobFunctionExecutionPolicyRequestSchema, DeleteWorkflowJobFunctionExecutionPolicyResponseSchema, DeleteWorkflowJobFunctionRequestSchema, DeleteWorkflowJobFunctionResponseSchema, DeleteWorkflowRequestSchema, DeleteWorkflowResponseSchema, GetWorkflowByNameRequestSchema, GetWorkflowByNameResponseSchema, GetWorkflowExecutionRequestSchema, GetWorkflowExecutionResponseSchema, GetWorkflowJobFunctionByNameRequestSchema, GetWorkflowJobFunctionByNameResponseSchema, GetWorkflowJobFunctionExecutionPolicyByKeyRequestSchema, GetWorkflowJobFunctionExecutionPolicyByKeyResponseSchema, GetWorkflowJobFunctionExecutionPolicyRequestSchema, GetWorkflowJobFunctionExecutionPolicyResponseSchema, GetWorkflowJobFunctionRequestSchema, GetWorkflowJobFunctionResponseSchema, GetWorkflowRequestSchema, GetWorkflowResponseSchema, ListWorkflowExecutionsRequestSchema, ListWorkflowExecutionsResponseSchema, ListWorkflowJobFunctionExecutionPoliciesRequestSchema, ListWorkflowJobFunctionExecutionPoliciesResponseSchema, ListWorkflowJobFunctionsRequestSchema, ListWorkflowJobFunctionsResponseSchema, ListWorkflowsRequestSchema, ListWorkflowsResponseSchema, ResumeWorkflowExecutionRequestSchema, ResumeWorkflowExecutionResponseSchema, StartWorkflowRequestSchema, StartWorkflowResponseSchema, TestResumeWorkflowRequestSchema, TestResumeWorkflowResponseSchema, TestStartWorkflowRequestSchema, TestStartWorkflowResponseSchema, UpdateWorkflowJobFunctionExecutionPolicyRequestSchema, UpdateWorkflowJobFunctionExecutionPolicyResponseSchema, UpdateWorkflowJobFunctionRequestSchema, UpdateWorkflowJobFunctionResponseSchema, UpdateWorkflowRequestSchema, UpdateWorkflowResponseSchema } from "./workflow_pb.mjs";
|
|
18
18
|
import { BulkSetMetadataRequestSchema, BulkSetMetadataResponseSchema, GetMetadataRequestSchema, GetMetadataResponseSchema, ListMetadataRequestSchema, ListMetadataResponseSchema, SetMetadataRequestSchema, SetMetadataResponseSchema } from "./metadata_pb.mjs";
|
|
19
19
|
import { CreateOTLPExporterRequestSchema, CreateOTLPExporterResponseSchema, CreateResourceAttributesConfigRequestSchema, CreateResourceAttributesConfigResponseSchema, DeleteOTLPExporterRequestSchema, DeleteOTLPExporterResponseSchema, DeleteResourceAttributesConfigRequestSchema, DeleteResourceAttributesConfigResponseSchema, GetOTLPExporterRequestSchema, GetOTLPExporterResponseSchema, GetResourceAttributesConfigRequestSchema, GetResourceAttributesConfigResponseSchema, ListOTLPExportersRequestSchema, ListOTLPExportersResponseSchema, TestOTLPExporterRequestSchema, TestOTLPExporterResponseSchema, UpdateOTLPExporterRequestSchema, UpdateOTLPExporterResponseSchema, UpdateResourceAttributesConfigRequestSchema, UpdateResourceAttributesConfigResponseSchema } from "./telemetryrouter_pb.mjs";
|
|
20
|
+
import { CountMyUnreadNotificationsRequestSchema, CountMyUnreadNotificationsResponseSchema, DismissMyNotificationRequestSchema, DismissMyNotificationResponseSchema, GetMyNotificationRequestSchema, GetMyNotificationResponseSchema, ListMyNotificationsRequestSchema, ListMyNotificationsResponseSchema, MarkMyNotificationsReadRequestSchema, MarkMyNotificationsReadResponseSchema } from "./notification_pb.mjs";
|
|
20
21
|
import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
21
22
|
import { Message } from "@bufbuild/protobuf";
|
|
22
23
|
/**
|
|
@@ -3972,4 +3973,81 @@ export declare const OperatorService: GenService<{
|
|
|
3972
3973
|
input: typeof DeleteResourceAttributesConfigRequestSchema;
|
|
3973
3974
|
output: typeof DeleteResourceAttributesConfigResponseSchema;
|
|
3974
3975
|
};
|
|
3976
|
+
/**
|
|
3977
|
+
* ListMyNotifications lists the caller's inbox: SENT, unexpired, not dismissed,
|
|
3978
|
+
* ordered by arrival. Works with a PAT of either scope.
|
|
3979
|
+
*
|
|
3980
|
+
* [Errors]
|
|
3981
|
+
* - Unauthenticated: token is missing, expired, or invalid
|
|
3982
|
+
* - InvalidArgument: request is invalid
|
|
3983
|
+
*
|
|
3984
|
+
* @generated from rpc tailor.v1.OperatorService.ListMyNotifications
|
|
3985
|
+
*/
|
|
3986
|
+
listMyNotifications: {
|
|
3987
|
+
methodKind: "unary";
|
|
3988
|
+
input: typeof ListMyNotificationsRequestSchema;
|
|
3989
|
+
output: typeof ListMyNotificationsResponseSchema;
|
|
3990
|
+
};
|
|
3991
|
+
/**
|
|
3992
|
+
* GetMyNotification returns one inbox entry. Visibility is the same as the
|
|
3993
|
+
* listing, so a revoked, expired, or dismissed notification is NotFound.
|
|
3994
|
+
*
|
|
3995
|
+
* [Errors]
|
|
3996
|
+
* - Unauthenticated: token is missing, expired, or invalid
|
|
3997
|
+
* - InvalidArgument: request is invalid
|
|
3998
|
+
* - NotFound: notification is not addressed to the caller or is no longer visible
|
|
3999
|
+
*
|
|
4000
|
+
* @generated from rpc tailor.v1.OperatorService.GetMyNotification
|
|
4001
|
+
*/
|
|
4002
|
+
getMyNotification: {
|
|
4003
|
+
methodKind: "unary";
|
|
4004
|
+
input: typeof GetMyNotificationRequestSchema;
|
|
4005
|
+
output: typeof GetMyNotificationResponseSchema;
|
|
4006
|
+
};
|
|
4007
|
+
/**
|
|
4008
|
+
* CountMyUnreadNotifications returns the caller's unread count for the badge.
|
|
4009
|
+
*
|
|
4010
|
+
* [Errors]
|
|
4011
|
+
* - Unauthenticated: token is missing, expired, or invalid
|
|
4012
|
+
*
|
|
4013
|
+
* @generated from rpc tailor.v1.OperatorService.CountMyUnreadNotifications
|
|
4014
|
+
*/
|
|
4015
|
+
countMyUnreadNotifications: {
|
|
4016
|
+
methodKind: "unary";
|
|
4017
|
+
input: typeof CountMyUnreadNotificationsRequestSchema;
|
|
4018
|
+
output: typeof CountMyUnreadNotificationsResponseSchema;
|
|
4019
|
+
};
|
|
4020
|
+
/**
|
|
4021
|
+
* MarkMyNotificationsRead marks notifications read. Idempotent; IDs that are
|
|
4022
|
+
* not visible to the caller are ignored. Requires a token with WRITE scope.
|
|
4023
|
+
*
|
|
4024
|
+
* [Errors]
|
|
4025
|
+
* - Unauthenticated: token is missing, expired, or invalid
|
|
4026
|
+
* - InvalidArgument: request is invalid
|
|
4027
|
+
* - PermissionDenied: token has READ scope only
|
|
4028
|
+
*
|
|
4029
|
+
* @generated from rpc tailor.v1.OperatorService.MarkMyNotificationsRead
|
|
4030
|
+
*/
|
|
4031
|
+
markMyNotificationsRead: {
|
|
4032
|
+
methodKind: "unary";
|
|
4033
|
+
input: typeof MarkMyNotificationsReadRequestSchema;
|
|
4034
|
+
output: typeof MarkMyNotificationsReadResponseSchema;
|
|
4035
|
+
};
|
|
4036
|
+
/**
|
|
4037
|
+
* DismissMyNotification removes a notification from the caller's inbox.
|
|
4038
|
+
* Idempotent. Requires a token with WRITE scope.
|
|
4039
|
+
*
|
|
4040
|
+
* [Errors]
|
|
4041
|
+
* - Unauthenticated: token is missing, expired, or invalid
|
|
4042
|
+
* - InvalidArgument: request is invalid
|
|
4043
|
+
* - PermissionDenied: token has READ scope only
|
|
4044
|
+
* - NotFound: notification is not addressed to the caller or is no longer visible
|
|
4045
|
+
*
|
|
4046
|
+
* @generated from rpc tailor.v1.OperatorService.DismissMyNotification
|
|
4047
|
+
*/
|
|
4048
|
+
dismissMyNotification: {
|
|
4049
|
+
methodKind: "unary";
|
|
4050
|
+
input: typeof DismissMyNotificationRequestSchema;
|
|
4051
|
+
output: typeof DismissMyNotificationResponseSchema;
|
|
4052
|
+
};
|
|
3975
4053
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type LogLevelEnum = "DEBUG" | "
|
|
1
|
+
export type LogLevelEnum = "DEBUG" | "ERROR" | "INFO" | "SILENT" | "WARN";
|
|
@@ -21,10 +21,10 @@ export type AuthConnectionConfig = {
|
|
|
21
21
|
clientId: string;
|
|
22
22
|
/** OAuth2 client secret */
|
|
23
23
|
clientSecret: string;
|
|
24
|
-
/** Connection type */
|
|
25
|
-
type: "oauth2";
|
|
26
24
|
/** OAuth2 authorization endpoint override */
|
|
27
25
|
authUrl?: string | undefined;
|
|
28
26
|
/** OAuth2 token endpoint override */
|
|
29
27
|
tokenUrl?: string | undefined;
|
|
28
|
+
/** Connection type */
|
|
29
|
+
type: "oauth2";
|
|
30
30
|
};
|
|
@@ -37,10 +37,10 @@ export type IDToken = {
|
|
|
37
37
|
kind: "IDToken";
|
|
38
38
|
/** ID token provider URL */
|
|
39
39
|
providerURL: string;
|
|
40
|
-
/** Client ID for ID token validation */
|
|
41
|
-
clientID: string;
|
|
42
40
|
/** ID token issuer URL */
|
|
43
41
|
issuerURL?: string | undefined;
|
|
42
|
+
/** Client ID for ID token validation */
|
|
43
|
+
clientID: string;
|
|
44
44
|
/** JWT claim to use as username */
|
|
45
45
|
usernameClaim?: string | undefined;
|
|
46
46
|
};
|
|
@@ -55,14 +55,14 @@ export type BuiltinIdP = {
|
|
|
55
55
|
};
|
|
56
56
|
export type IdProvider = OIDC | SAML | IDToken | BuiltinIdP;
|
|
57
57
|
export type OAuth2ClientInput = {
|
|
58
|
-
/** Allowed redirect URIs */
|
|
59
|
-
redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
|
|
60
58
|
/** Client description */
|
|
61
59
|
description?: string | undefined;
|
|
62
60
|
/** Allowed OAuth2 grant types */
|
|
63
61
|
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
|
|
62
|
+
/** Allowed redirect URIs */
|
|
63
|
+
redirectURIs: (`${string}:url` | `${string}:url/${string}` | `http://${string}` | `https://${string}`)[];
|
|
64
64
|
/** OAuth2 client type */
|
|
65
|
-
clientType?: "
|
|
65
|
+
clientType?: "browser" | "confidential" | "public" | undefined;
|
|
66
66
|
/** Access token lifetime in seconds (60-86400) */
|
|
67
67
|
accessTokenLifetimeSeconds?: number | undefined;
|
|
68
68
|
/** Refresh token lifetime in seconds (60-604800) */
|
|
@@ -71,10 +71,14 @@ export type OAuth2ClientInput = {
|
|
|
71
71
|
requireDpop?: boolean | undefined;
|
|
72
72
|
};
|
|
73
73
|
export type OAuth2Client = {
|
|
74
|
+
/** Client description */
|
|
75
|
+
description?: string | undefined;
|
|
74
76
|
/** Allowed OAuth2 grant types */
|
|
75
77
|
grantTypes: ("authorization_code" | "refresh_token")[];
|
|
76
78
|
/** Allowed redirect URIs */
|
|
77
|
-
redirectURIs: (
|
|
79
|
+
redirectURIs: (`${string}:url` | `${string}:url/${string}` | `http://${string}` | `https://${string}`)[];
|
|
80
|
+
/** OAuth2 client type */
|
|
81
|
+
clientType?: "browser" | "confidential" | "public" | undefined;
|
|
78
82
|
/** Access token lifetime in seconds (60-86400) */
|
|
79
83
|
accessTokenLifetimeSeconds: {
|
|
80
84
|
seconds: bigint;
|
|
@@ -85,16 +89,12 @@ export type OAuth2Client = {
|
|
|
85
89
|
seconds: bigint;
|
|
86
90
|
nanos: number;
|
|
87
91
|
} | undefined;
|
|
88
|
-
/** Client description */
|
|
89
|
-
description?: string | undefined;
|
|
90
|
-
/** OAuth2 client type */
|
|
91
|
-
clientType?: "confidential" | "public" | "browser" | undefined;
|
|
92
92
|
/** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
|
|
93
93
|
requireDpop?: boolean | undefined;
|
|
94
94
|
};
|
|
95
95
|
export type SCIMAuthorization = {
|
|
96
96
|
/** SCIM authorization type */
|
|
97
|
-
type: "
|
|
97
|
+
type: "bearer" | "oauth2";
|
|
98
98
|
/** Bearer token secret (required for bearer type) */
|
|
99
99
|
bearerSecret?: {
|
|
100
100
|
/** Vault name containing the secret */
|
|
@@ -106,7 +106,7 @@ export type SCIMAuthorization = {
|
|
|
106
106
|
/**
|
|
107
107
|
* SCIM attribute data type
|
|
108
108
|
*/
|
|
109
|
-
export type SCIMAttributeType = "
|
|
109
|
+
export type SCIMAttributeType = "boolean" | "complex" | "datetime" | "number" | "string";
|
|
110
110
|
export type SCIMAttribute = {
|
|
111
111
|
/** Attribute data type */
|
|
112
112
|
type: SCIMAttributeType;
|
|
@@ -121,7 +121,7 @@ export type SCIMAttribute = {
|
|
|
121
121
|
/** Whether the attribute can have multiple values */
|
|
122
122
|
multiValued?: boolean | undefined;
|
|
123
123
|
/** Uniqueness constraint */
|
|
124
|
-
uniqueness?: "
|
|
124
|
+
uniqueness?: "global" | "none" | "server" | undefined;
|
|
125
125
|
/** List of canonical values */
|
|
126
126
|
canonicalValues?: string[] | null | undefined;
|
|
127
127
|
subAttributes?: SCIMAttribute[] | null | undefined;
|