@tailor-platform/sdk 2.35.0 → 2.37.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/dist/{application-Bj2MtL-d.mjs → application-83WVdH85.mjs} +1 -1
  3. package/dist/{application-DIsQSnj3.mjs → application-Cida-j1g.mjs} +36 -36
  4. package/dist/application-Cida-j1g.mjs.map +1 -0
  5. package/dist/cli/commands/deploy/deploy.d.mts +6 -1
  6. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +1 -0
  7. package/dist/cli/commands/executor/jobs.d.mts +3 -0
  8. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -0
  9. package/dist/cli/commands/tailordb/migrate/config.d.mts +4 -0
  10. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +10 -0
  11. package/dist/cli/commands/tailordb/migrate/generate.d.mts +28 -2
  12. package/dist/cli/commands/tailordb/migrate/hints.d.mts +1 -0
  13. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +3 -0
  14. package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +3 -1
  15. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +4 -0
  16. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +44 -6
  17. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +2 -0
  18. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +2 -0
  19. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +8 -0
  20. package/dist/cli/commands/tailordb/migrate/types.d.mts +2 -0
  21. package/dist/cli/commands/workspace/create.d.mts +5 -3
  22. package/dist/cli/lib.d.mts +2 -2
  23. package/dist/cli/lib.mjs +1 -1
  24. package/dist/cli/lib.mjs.map +1 -1
  25. package/dist/cli/main.mjs +52 -51
  26. package/dist/cli/main.mjs.map +1 -1
  27. package/dist/cli/shared/client.d.mts +26 -0
  28. package/dist/cli/shared/function-execution.d.mts +2 -0
  29. package/dist/cli/shared/prompt.d.mts +9 -4
  30. package/dist/completion/zsh-worker.zsh +21 -13
  31. package/dist/configure/config/index.d.mts +2 -0
  32. package/dist/configure/config/types.d.mts +2 -0
  33. package/dist/configure/index.mjs.map +1 -1
  34. package/dist/configure/services/executor/trigger/webhook.d.mts +1 -0
  35. package/dist/configure/services/tailordb/schema.d.mts +7 -2
  36. package/dist/configure/services/tailordb/types.d.mts +3 -0
  37. package/dist/crashreport-C2AcQNTe.mjs +1 -0
  38. package/dist/{crashreport-DGU6lwiX.mjs → crashreport-D_wf4GZh.mjs} +4 -4
  39. package/dist/{crashreport-DGU6lwiX.mjs.map → crashreport-D_wf4GZh.mjs.map} +1 -1
  40. package/dist/date-representation-Cr7W7Pn2.mjs.map +1 -1
  41. package/dist/{errors-BXmGBX-7.mjs → errors-Dmdnq0zi.mjs} +2 -2
  42. package/dist/errors-Dmdnq0zi.mjs.map +1 -0
  43. package/dist/{kysely-type-B0ri1-Xs.mjs → kysely-type-DVL90_oX.mjs} +6 -6
  44. package/dist/kysely-type-DVL90_oX.mjs.map +1 -0
  45. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  46. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +4 -3
  47. package/dist/plugin/get-generated-table.d.mts +4 -0
  48. package/dist/plugin/index.mjs.map +1 -1
  49. package/dist/plugin/types.d.mts +55 -3
  50. package/dist/plugin/with-context.d.mts +16 -0
  51. package/dist/register-ts-hook-Ht4zCseV.mjs +1115 -0
  52. package/dist/register-ts-hook-Ht4zCseV.mjs.map +1 -0
  53. package/dist/schema-BU1aIQ63.mjs.map +1 -1
  54. package/dist/{secret-file-BxZ-J_Nz.mjs → secret-file-DiuEcLFP.mjs} +2 -2
  55. package/dist/{secret-file-BxZ-J_Nz.mjs.map → secret-file-DiuEcLFP.mjs.map} +1 -1
  56. package/dist/service-CZ0EdD2-.mjs +10 -0
  57. package/dist/service-CZ0EdD2-.mjs.map +1 -0
  58. package/dist/service-DDrbdyd-.mjs +2 -0
  59. package/dist/{service-CaGmqg0r.mjs.map → service-DDrbdyd-.mjs.map} +1 -1
  60. package/dist/service-WhSyhaho.mjs +1 -0
  61. package/dist/service_pb-BMHhVot2.mjs +1 -0
  62. package/dist/service_pb-BxMSK0gg.mjs +2 -0
  63. package/dist/service_pb-BxMSK0gg.mjs.map +1 -0
  64. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +3 -3
  65. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +92 -0
  66. package/dist/tailor-proto/src/tailor/v1/notification_pb.d.mts +176 -0
  67. package/dist/tailor-proto/src/tailor/v1/notification_resource_pb.d.mts +172 -0
  68. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +78 -0
  69. package/dist/types/app-config.generated.d.mts +1 -1
  70. package/dist/types/auth-connection.generated.d.mts +2 -2
  71. package/dist/types/auth.generated.d.mts +13 -13
  72. package/dist/types/executor.generated.d.mts +25 -25
  73. package/dist/types/field.generated.d.mts +2 -2
  74. package/dist/types/http-adapter.generated.d.mts +4 -4
  75. package/dist/types/idp.generated.d.mts +272 -272
  76. package/dist/types/resolver.generated.d.mts +10 -10
  77. package/dist/types/tailordb.generated.d.mts +84 -80
  78. package/dist/types/workflow.generated.d.mts +2 -2
  79. package/dist/vitest/date-representation.d.mts +2 -0
  80. package/dist/vitest/environment.d.mts +1 -0
  81. package/dist/vitest/environment.mjs.map +1 -1
  82. package/dist/vitest/index.mjs +1 -1
  83. package/dist/vitest/index.mjs.map +1 -1
  84. package/dist/vitest/migration-steps.d.mts +13 -2
  85. package/dist/vitest/mock-kysely.d.mts +12 -2
  86. package/dist/vitest/mocks/aigateway.d.mts +7 -1
  87. package/dist/vitest/mocks/authconnection.d.mts +7 -1
  88. package/dist/vitest/mocks/file.d.mts +7 -1
  89. package/dist/vitest/mocks/iconv.d.mts +7 -1
  90. package/dist/vitest/mocks/idp.d.mts +7 -1
  91. package/dist/vitest/mocks/logger.d.mts +7 -1
  92. package/dist/vitest/mocks/secretmanager.d.mts +7 -1
  93. package/dist/vitest/mocks/tailordb-pglite.d.mts +12 -2
  94. package/dist/vitest/mocks/tailordb.d.mts +22 -4
  95. package/dist/vitest/mocks/workflow.d.mts +2 -1
  96. package/dist/vitest/pglite-kysely.d.mts +23 -2
  97. package/dist/vitest/pglite-temporal.d.mts +5 -1
  98. package/dist/vitest/workflow-local.d.mts +7 -0
  99. package/dist/{workspace_resource_pb-C4CkoYww.mjs → workspace_resource_pb-7smKERdZ.mjs} +2 -2
  100. package/dist/workspace_resource_pb-7smKERdZ.mjs.map +1 -0
  101. package/docs/cli/application.md +52 -22
  102. package/docs/cli/executor.md +2 -0
  103. package/docs/cli/function.md +3 -1
  104. package/docs/cli/tailordb.md +31 -23
  105. package/docs/cli/user.md +1 -1
  106. package/docs/cli/workflow.md +2 -0
  107. package/docs/cli/workspace.md +20 -18
  108. package/docs/cli-reference.md +10 -7
  109. package/docs/configuration.md +2 -2
  110. package/docs/data-clone.md +1 -1
  111. package/docs/github-actions.md +104 -15
  112. package/docs/plugin/custom.md +4 -4
  113. package/docs/runtime.md +1 -1
  114. package/docs/services/auth.md +2 -0
  115. package/docs/services/executor.md +12 -5
  116. package/docs/services/idp.md +2 -0
  117. package/docs/services/tailordb/index.md +12 -3
  118. package/docs/services/tailordb/migration.md +90 -38
  119. package/docs/services/workflow.md +1 -1
  120. package/docs/testing.md +9 -9
  121. package/package.json +22 -22
  122. package/dist/application-DIsQSnj3.mjs.map +0 -1
  123. package/dist/crashreport-WsYAWARW.mjs +0 -1
  124. package/dist/errors-BXmGBX-7.mjs.map +0 -1
  125. package/dist/kysely-type-B0ri1-Xs.mjs.map +0 -1
  126. package/dist/register-ts-hook-CQ7shKO5.mjs +0 -1055
  127. package/dist/register-ts-hook-CQ7shKO5.mjs.map +0 -1
  128. package/dist/service-CaGmqg0r.mjs +0 -2
  129. package/dist/service-DEq_hdht.mjs +0 -1
  130. package/dist/service-eeXdVrDK.mjs +0 -8
  131. package/dist/service-eeXdVrDK.mjs.map +0 -1
  132. package/dist/service_pb-6EkMfdOb.mjs +0 -2
  133. package/dist/service_pb-6EkMfdOb.mjs.map +0 -1
  134. package/dist/service_pb-CsJKokDl.mjs +0 -1
  135. 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" | "INFO" | "WARN" | "ERROR" | "SILENT";
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?: "confidential" | "public" | "browser" | undefined;
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: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
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: "oauth2" | "bearer";
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 = "string" | "number" | "boolean" | "datetime" | "complex";
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?: "none" | "server" | "global" | undefined;
124
+ uniqueness?: "global" | "none" | "server" | undefined;
125
125
  /** List of canonical values */
126
126
  canonicalValues?: string[] | null | undefined;
127
127
  subAttributes?: SCIMAttribute[] | null | undefined;