@burdenoff/microfe-subscriberbot 2026.719.1 → 2026.720.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.
@@ -1 +1 @@
1
- {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/subscriberbot/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module subscriberbot/components\n *\n * A colored badge for Subscriber Bot domain statuses (relationship lifecycle,\n * invoice status, agent posture, channel verification, provider status,\n * workflow state) with semantic color mapping. Accepts the raw server enum\n * value (e.g. \"ACTIVE\", \"PAST_DUE\", \"SUGGEST_ONLY\").\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\nimport { formatEnumLabel } from '../utils/formatters';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-[var(--color-accent-soft)] text-text-primary',\n outline: 'border border-border-seam text-text-primary',\n};\n\n// Statuses that represent a \"live\" / in-progress condition get a subtle,\n// opacity-only glow pulse (reduced-motion safe via motion-safe:).\nconst liveStatuses = new Set(['ACTIVE', 'AUTONOMOUS', 'TRIAL', 'EXPIRING']);\n\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Relationship lifecycle\n ACTIVE: 'success',\n TRIAL: 'info',\n PAUSED: 'warning',\n PAST_DUE: 'destructive',\n LAPSED: 'warning',\n EXPIRED: 'secondary',\n CANCELLED: 'destructive',\n\n // Invoice status\n DRAFT: 'secondary',\n ISSUED: 'info',\n PAID: 'success',\n OVERDUE: 'destructive',\n FAILED: 'destructive',\n REFUNDED: 'outline',\n\n // Agent posture\n AUTONOMOUS: 'success',\n SUGGEST_ONLY: 'info',\n DISABLED: 'secondary',\n\n // Channel verification / payment instrument\n VERIFIED: 'success',\n PENDING: 'warning',\n EXPIRING: 'warning',\n REMOVED: 'outline',\n\n // Provider status\n CLAIMED: 'success',\n UNVERIFIED: 'secondary',\n DEPRECATED: 'outline',\n\n // Workflow status\n ARCHIVED: 'outline',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const key = status.toUpperCase();\n const variant = statusVariantMap[key] ?? 'secondary';\n const isLive = liveStatuses.has(key);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {formatEnumLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;;AAqBA,IAAM,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;CACV,EAIK,IAAe,IAAI,IAAI;CAAC;CAAU;CAAc;CAAS;CAAW,CAAC,EAErE,IAAiD;CAErD,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,SAAS;CACT,WAAW;CAGX,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,QAAQ;CACR,UAAU;CAGV,YAAY;CACZ,cAAc;CACd,UAAU;CAGV,UAAU;CACV,SAAS;CACT,UAAU;CACV,SAAS;CAGT,SAAS;CACT,YAAY;CACZ,YAAY;CAGZ,UAAU;CACX,EAEY,KAAqC,EAAE,WAAQ,mBAAgB;CAC1E,IAAM,IAAM,EAAO,aAAa,EAC1B,IAAU,EAAiB,MAAQ,aACnC,IAAS,EAAa,IAAI,EAAI;AAEpC,QACE,kBAAC,QAAD;EACE,WAAW,EACT,mFACA,EAAc,IACd,EACD;YALH,CAOG,KACC,kBAAC,QAAD;GACE,eAAY;GACZ,WAAU;GACV,CAAA,EAEH,EAAgB,EAAO,CACnB"}
1
+ {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/subscriberbot/components/StatusBadge.tsx"],"sourcesContent":["/**\n * Status Badge Component\n * @module subscriberbot/components\n *\n * A colored badge for Subscriber Bot domain statuses (relationship lifecycle,\n * invoice status, agent posture, channel verification, provider status,\n * workflow state) with semantic color mapping. Accepts the raw server enum\n * value (e.g. \"ACTIVE\", \"PAST_DUE\", \"SUGGEST_ONLY\").\n */\n\nimport type { FC } from 'react';\nimport { cn } from '../utils/cn';\nimport { formatEnumLabel } from '../utils/formatters';\n\ninterface StatusBadgeProps {\n status: string;\n className?: string;\n}\n\ntype BadgeVariant = 'success' | 'warning' | 'destructive' | 'secondary' | 'info' | 'outline';\n\nconst variantStyles: Record<BadgeVariant, string> = {\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n secondary: 'bg-bg-sunken text-text-secondary',\n info: 'bg-[var(--color-accent-soft)] text-text-primary',\n outline: 'border border-border-seam text-text-primary',\n};\n\n// Statuses that represent a \"live\" / in-progress condition get a subtle,\n// opacity-only glow pulse (reduced-motion safe via motion-safe:).\nconst liveStatuses = new Set(['ACTIVE', 'AUTONOMOUS', 'TRIAL', 'EXPIRING']);\n\nconst statusVariantMap: Record<string, BadgeVariant> = {\n // Relationship lifecycle\n ACTIVE: 'success',\n TRIAL: 'info',\n PAUSED: 'warning',\n PAST_DUE: 'destructive',\n LAPSED: 'warning',\n EXPIRED: 'secondary',\n CANCELLED: 'destructive',\n\n // Invoice status\n DRAFT: 'secondary',\n ISSUED: 'info',\n PAID: 'success',\n OVERDUE: 'destructive',\n FAILED: 'destructive',\n REFUNDED: 'outline',\n\n // Agent posture\n AUTONOMOUS: 'success',\n SUGGEST_ONLY: 'info',\n DISABLED: 'secondary',\n\n // Channel verification / payment instrument\n VERIFIED: 'success',\n PENDING: 'warning',\n EXPIRING: 'warning',\n REMOVED: 'outline',\n\n // Provider status\n CLAIMED: 'success',\n UNVERIFIED: 'secondary',\n DEPRECATED: 'outline',\n\n // Workflow status\n ARCHIVED: 'outline',\n\n // Adapter submission / marketplace report moderation status\n APPROVED: 'success',\n REJECTED: 'destructive',\n DISMISSED: 'outline',\n RESOLVED: 'success',\n};\n\nexport const StatusBadge: FC<StatusBadgeProps> = ({ status, className }) => {\n const key = status.toUpperCase();\n const variant = statusVariantMap[key] ?? 'secondary';\n const isLive = liveStatuses.has(key);\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variantStyles[variant],\n className\n )}\n >\n {isLive && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-current motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {formatEnumLabel(status)}\n </span>\n );\n};\n"],"mappings":";;;;AAqBA,IAAM,IAA8C;CAClD,SAAS;CACT,SAAS;CACT,aAAa;CACb,WAAW;CACX,MAAM;CACN,SAAS;CACV,EAIK,IAAe,IAAI,IAAI;CAAC;CAAU;CAAc;CAAS;CAAW,CAAC,EAErE,IAAiD;CAErD,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,QAAQ;CACR,SAAS;CACT,WAAW;CAGX,OAAO;CACP,QAAQ;CACR,MAAM;CACN,SAAS;CACT,QAAQ;CACR,UAAU;CAGV,YAAY;CACZ,cAAc;CACd,UAAU;CAGV,UAAU;CACV,SAAS;CACT,UAAU;CACV,SAAS;CAGT,SAAS;CACT,YAAY;CACZ,YAAY;CAGZ,UAAU;CAGV,UAAU;CACV,UAAU;CACV,WAAW;CACX,UAAU;CACX,EAEY,KAAqC,EAAE,WAAQ,mBAAgB;CAC1E,IAAM,IAAM,EAAO,aAAa,EAC1B,IAAU,EAAiB,MAAQ,aACnC,IAAS,EAAa,IAAI,EAAI;AAEpC,QACE,kBAAC,QAAD;EACE,WAAW,EACT,mFACA,EAAc,IACd,EACD;YALH,CAOG,KACC,kBAAC,QAAD;GACE,eAAY;GACZ,WAAU;GACV,CAAA,EAEH,EAAgB,EAAO,CACnB"}
@@ -2,6 +2,6 @@
2
2
  * SubscriberBot hooks barrel
3
3
  * @module subscriberbot/hooks
4
4
  */
5
- export { useRelationships, useRelationship, useCreateRelationship, useUpdateRelationship, useTransitionRelationship, useCancelRelationship, useRenewalEvents, useEntitlements, useCreateEntitlement, useAssets, useCreateAsset, useUploadFile, useFileDownloadUrl, useProviders, useProvider, useCreateProvider, useUpdateProvider, useArchiveProvider, usePlans, useCreatePlan, useInboxMessages, useMarkMessageRead, useIngestMessage, useInvoices, useMarkInvoicePaid, useCreateInvoice, usePaymentInstruments, useCreatePaymentInstrument, useRemovePaymentInstrument, useChannels, useCreateChannel, useVerifyChannel, useAgents, useAgent, useCreateAgent, useSetAgentStatus, useCreatePolicy, useWorkflows, useCreateWorkflow, useActivateWorkflow, } from './useSubscriberBotApi';
6
- export type { RelationshipListFilters, ProviderListFilters, InboxListFilters, InvoiceListFilters, AgentListFilters, } from './useSubscriberBotApi';
5
+ export { useRelationships, useRelationship, useCreateRelationship, useUpdateRelationship, useTransitionRelationship, useCancelRelationship, useRenewalEvents, useEntitlements, useCreateEntitlement, useAssets, useCreateAsset, useUploadFile, useFileDownloadUrl, useProviders, useProvider, useCreateProvider, useUpdateProvider, useArchiveProvider, usePlans, useCreatePlan, useInboxMessages, useMarkMessageRead, useIngestMessage, useInvoices, useMarkInvoicePaid, useCreateInvoice, usePaymentInstruments, useCreatePaymentInstrument, useRemovePaymentInstrument, useChannels, useCreateChannel, useVerifyChannel, useAgents, useAgent, useCreateAgent, useSetAgentStatus, useCreatePolicy, useWorkflows, useCreateWorkflow, useActivateWorkflow, useAdapterSubmissions, useApproveAdapter, useRejectAdapter, useMarketplaceReports, useModerateListing, } from './useSubscriberBotApi';
6
+ export type { RelationshipListFilters, ProviderListFilters, InboxListFilters, InvoiceListFilters, AgentListFilters, AdapterSubmissionListFilters, MarketplaceReportListFilters, } from './useSubscriberBotApi';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,cAAc,EACd,aAAa,EACb,kBAAkB,EAElB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAEhB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,cAAc,EACd,aAAa,EACb,kBAAkB,EAElB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAEhB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAEhB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAEhB,SAAS,EACT,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EAEnB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { PaginationInput, SubAgentKind, SubAgentStatus, SubAiAgent, SubAsset, SubCommunicationChannel, SubConnection, SubCreateAgentInput, SubCreateAssetInput, SubCreateChannelInput, SubCreateEntitlementInput, SubCreateInvoiceInput, SubCreatePaymentInstrumentInput, SubCreatePlanInput, SubCreatePolicyInput, SubCreateProviderInput, SubCreateRelationshipInput, SubCreateWorkflowInput, SubEntitlement, SubInboxMessage, SubIngestMessageInput, SubInvoice, SubInvoiceStatus, SubMessageCategory, SubPaymentInstrument, SubPlan, SubPolicy, SubProvider, SubProviderCategory, SubProviderStatus, SubRelationship, SubRelationshipKind, SubRelationshipStatus, SubRenewalEvent, SubUpdateProviderInput, SubUpdateRelationshipInput, SubWorkflow, SubWorkflowStatus } from '../types';
1
+ import { PaginationInput, SubAdapterSubmission, SubAgentKind, SubAgentStatus, SubAiAgent, SubAsset, SubCommunicationChannel, SubConnection, SubCreateAgentInput, SubCreateAssetInput, SubCreateChannelInput, SubCreateEntitlementInput, SubCreateInvoiceInput, SubCreatePaymentInstrumentInput, SubCreatePlanInput, SubCreatePolicyInput, SubCreateProviderInput, SubCreateRelationshipInput, SubCreateWorkflowInput, SubEntitlement, SubInboxMessage, SubIngestMessageInput, SubInvoice, SubInvoiceStatus, SubMarketplaceReport, SubMessageCategory, SubModerationAction, SubPaymentInstrument, SubPlan, SubPolicy, SubProvider, SubProviderCategory, SubProviderStatus, SubRelationship, SubRelationshipKind, SubRelationshipStatus, SubRenewalEvent, SubReportStatus, SubSubmissionStatus, SubUpdateProviderInput, SubUpdateRelationshipInput, SubWorkflow, SubWorkflowStatus } from '../types';
2
2
 
3
3
  export interface RelationshipListFilters {
4
4
  kind?: SubRelationshipKind;
@@ -102,4 +102,27 @@ export declare const useCreatePolicy: () => import('@tanstack/react-query').UseM
102
102
  export declare const useWorkflows: (status?: SubWorkflowStatus) => import('@tanstack/react-query').UseQueryResult<NoInfer<SubWorkflow[]>, Error>;
103
103
  export declare const useCreateWorkflow: () => import('@tanstack/react-query').UseMutationResult<SubWorkflow, Error, SubCreateWorkflowInput, unknown>;
104
104
  export declare const useActivateWorkflow: () => import('@tanstack/react-query').UseMutationResult<SubWorkflow, Error, string, unknown>;
105
+ export interface AdapterSubmissionListFilters {
106
+ status?: SubSubmissionStatus;
107
+ pagination?: PaginationInput;
108
+ }
109
+ export declare const useAdapterSubmissions: (filters?: AdapterSubmissionListFilters) => import('@tanstack/react-query').UseQueryResult<NoInfer<SubConnection<SubAdapterSubmission>>, Error>;
110
+ export declare const useApproveAdapter: () => import('@tanstack/react-query').UseMutationResult<SubAdapterSubmission, Error, {
111
+ id: string;
112
+ notes?: string;
113
+ }, unknown>;
114
+ export declare const useRejectAdapter: () => import('@tanstack/react-query').UseMutationResult<SubAdapterSubmission, Error, {
115
+ id: string;
116
+ reason: string;
117
+ }, unknown>;
118
+ export interface MarketplaceReportListFilters {
119
+ status?: SubReportStatus;
120
+ pagination?: PaginationInput;
121
+ }
122
+ export declare const useMarketplaceReports: (filters?: MarketplaceReportListFilters) => import('@tanstack/react-query').UseQueryResult<NoInfer<SubConnection<SubMarketplaceReport>>, Error>;
123
+ export declare const useModerateListing: () => import('@tanstack/react-query').UseMutationResult<SubMarketplaceReport, Error, {
124
+ id: string;
125
+ action: SubModerationAction;
126
+ reason: string;
127
+ }, unknown>;
105
128
  //# sourceMappingURL=useSubscriberBotApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSubscriberBotApi.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/hooks/useSubscriberBotApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAWH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACZ,cAAc,EACd,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACP,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,0BAA0B,EAC1B,WAAW,EACX,iBAAiB,EAClB,MAAM,UAAU,CAAC;AA4HlB,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,gBAAgB,GAAI,UAAS,uBAA4B,mGA6CrE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI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AC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,SAAS,GAAI,UAAS,gBAAqB,iFAiBvD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,GAAG,SAAS,sFAsB9C,CAAC;AAEF,eAAO,MAAM,cAAc,0GAkB1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;QAIe,MAAM;YAAU,cAAc;WAe1E,CAAC;AAEF,eAAO,MAAM,eAAe,0GAmB3B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,iBAAiB,kFAetD,CAAC;AAEF,eAAO,MAAM,iBAAiB,8GAkB7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,8FAkB/B,CAAC"}
1
+ {"version":3,"file":"useSubscriberBotApi.d.ts","sourceRoot":"","sources":["../../../src/subscriberbot/hooks/useSubscriberBotApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAWH,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,WAAW,EACX,iBAAiB,E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3C,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,GAAI,UAAS,4BAAiC,wGAuB/E,CAAC;AAEF,eAAO,MAAM,kBAAkB;QASrB,MAAM;YACF,mBAAmB;YACnB,MAAM;WAenB,CAAC"}
@@ -43,8 +43,18 @@ var c = async (e, t, n) => {
43
43
  workflows: ["subscriberbot", "workflows"],
44
44
  renewals: ["subscriberbot", "renewals"],
45
45
  assets: ["subscriberbot", "assets"],
46
- entitlements: ["subscriberbot", "entitlements"]
47
- }, u = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", d = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", f = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt workspaceId createdAt updatedAt\n", p = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", m = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", h = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", g = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", _ = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n", v = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n", y = "\n id label type status brand last4 expiryMonth expiryYear isDefault ownerId\n workspaceId createdAt updatedAt\n", b = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", x = "\n id name description action agentId isEnabled triggerCount lastTriggeredAt\n workspaceId createdAt updatedAt\n", S = (t = {}) => {
46
+ entitlements: ["subscriberbot", "entitlements"],
47
+ adapterSubmissions: [
48
+ "subscriberbot",
49
+ "admin",
50
+ "adapter-submissions"
51
+ ],
52
+ marketplaceReports: [
53
+ "subscriberbot",
54
+ "admin",
55
+ "marketplace-reports"
56
+ ]
57
+ }, u = "\n id name slug category status description industry region language websiteUrl\n logoFileId tags churnRiskScore vendorHealthScore workspaceId createdAt updatedAt\n", d = "\n id name description providerId amount currency interval features isActive\n workspaceId createdAt updatedAt\n", f = "\n id label kind status amount currency interval autoRenew discoverySource notes\n tags healthScore ownerId providerId planId startedAt renewsAt trialEndsAt\n cancelledAt workspaceId createdAt updatedAt\n", p = "\n id subject preview category categoryConfidence channelId relationshipId\n externalId actionRequired isRead receivedAt workspaceId createdAt updatedAt\n", m = "\n id number relationshipId status currency subtotal taxAmount total issueDate\n dueDate paidAt paymentInstrumentId workspaceId createdAt updatedAt\n", h = "\n id name description kind status ownerId lastRunAt workspaceId createdAt updatedAt\n", g = "\n id name description triggerEvent status runCount lastRunAt workspaceId\n createdAt updatedAt\n", _ = "\n id name description type relationshipId quota used unit isActive\n workspaceId createdAt updatedAt\n", v = "\n id name type relationshipId secretRef expiresAt workspaceId createdAt\n updatedAt file { id }\n", y = "\n id label type status brand last4 expiryMonth expiryYear isDefault ownerId\n workspaceId createdAt updatedAt\n", b = "\n id label type status address ingestEnabled ownerId verifiedAt workspaceId\n createdAt updatedAt\n", ee = "\n id name description action agentId isEnabled triggerCount lastTriggeredAt\n workspaceId createdAt updatedAt\n", x = "\n id workspaceId adapterId submitterWorkspaceId status notes createdAt updatedAt\n", S = "\n id workspaceId listingId reporterWorkspaceId reason status resolutionReason\n createdAt updatedAt\n", C = (t = {}) => {
48
58
  let { apiGatewayUrl: n } = e();
49
59
  return i({
50
60
  queryKey: [...l.relationships, t],
@@ -83,7 +93,7 @@ var c = async (e, t, n) => {
83
93
  }
84
94
  }, n)).subListRelationships
85
95
  });
86
- }, C = (t) => {
96
+ }, w = (t) => {
87
97
  let { apiGatewayUrl: n } = e();
88
98
  return i({
89
99
  queryKey: l.relationship(t ?? ""),
@@ -108,7 +118,7 @@ var c = async (e, t, n) => {
108
118
  }
109
119
  }`, { id: t }, n)).subRelationship
110
120
  });
111
- }, w = () => {
121
+ }, T = () => {
112
122
  let t = a(), { apiGatewayUrl: n } = e();
113
123
  return r({
114
124
  mutationFn: async (e) => (await c(`mutation SubCreateRelationship($input: SubCreateRelationshipInput!) {
@@ -118,7 +128,7 @@ var c = async (e, t, n) => {
118
128
  t.invalidateQueries({ queryKey: l.relationships });
119
129
  }
120
130
  });
121
- }, T = () => {
131
+ }, E = () => {
122
132
  let t = a(), { apiGatewayUrl: n } = e();
123
133
  return r({
124
134
  mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubTransitionRelationship($id: ID!, $status: SubRelationshipStatus!) {
@@ -131,7 +141,7 @@ var c = async (e, t, n) => {
131
141
  t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
132
142
  }
133
143
  });
134
- }, E = () => {
144
+ }, D = () => {
135
145
  let t = a(), { apiGatewayUrl: n } = e();
136
146
  return r({
137
147
  mutationFn: async (e) => (await c(`mutation SubCancelRelationship($id: ID!) {
@@ -141,7 +151,7 @@ var c = async (e, t, n) => {
141
151
  t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
142
152
  }
143
153
  });
144
- }, D = () => {
154
+ }, O = () => {
145
155
  let t = a(), { apiGatewayUrl: n } = e();
146
156
  return r({
147
157
  mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateRelationship($id: ID!, $input: SubUpdateRelationshipInput!) {
@@ -154,16 +164,16 @@ var c = async (e, t, n) => {
154
164
  t.invalidateQueries({ queryKey: l.relationships }), t.invalidateQueries({ queryKey: l.relationship(e.id) });
155
165
  }
156
166
  });
157
- }, O = (t = {}) => {
167
+ }, k = (t = {}) => {
158
168
  let { apiGatewayUrl: n } = e();
159
169
  return i({
160
170
  queryKey: [...l.renewals, t],
161
- queryFn: async () => (await c("query SubRenewalEvents($relationshipId: ID, $upcomingOnly: Boolean) {\n subListRenewalEvents(relationshipId: $relationshipId, upcomingOnly: $upcomingOnly) {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n }", {
171
+ queryFn: async () => (await c("query SubRenewalEvents($relationshipId: ID, $upcomingOnly: Boolean) {\n subListRenewalEvents(relationshipId: $relationshipId, upcomingOnly: $upcomingOnly) {\n items {\n id relationshipId eventType occursAt amount currency detail notified\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", {
162
172
  relationshipId: t.relationshipId,
163
173
  upcomingOnly: t.upcomingOnly
164
- }, n)).subListRenewalEvents
174
+ }, n)).subListRenewalEvents.items
165
175
  });
166
- }, k = () => {
176
+ }, A = () => {
167
177
  let t = a(), { apiGatewayUrl: n } = e();
168
178
  return r({
169
179
  mutationFn: async (e) => (await c(`mutation SubCreateEntitlement($input: SubCreateEntitlementInput!) {
@@ -173,15 +183,15 @@ var c = async (e, t, n) => {
173
183
  t.invalidateQueries({ queryKey: l.entitlements }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
174
184
  }
175
185
  });
176
- }, A = () => {
186
+ }, j = () => {
177
187
  let { apiGatewayUrl: t } = e();
178
188
  return i({
179
189
  queryKey: [...l.assets, "all"],
180
190
  queryFn: async () => (await c(`query SubAllAssets {
181
- subListAssets { ${v} }
182
- }`, {}, t)).subListAssets
191
+ subListAssets { items { ${v} } pageInfo { cursor hasMore } }
192
+ }`, {}, t)).subListAssets.items
183
193
  });
184
- }, j = () => {
194
+ }, M = () => {
185
195
  let t = a(), { apiGatewayUrl: n } = e();
186
196
  return r({
187
197
  mutationFn: async (e) => (await c(`mutation SubCreateAsset($input: SubCreateAssetInput!) {
@@ -191,13 +201,13 @@ var c = async (e, t, n) => {
191
201
  t.invalidateQueries({ queryKey: l.assets }), t.invalidateQueries({ queryKey: l.relationship(e.relationshipId) });
192
202
  }
193
203
  });
194
- }, M = "/SubscriberBot/Assets", N = () => {
204
+ }, N = "/SubscriberBot/Assets", P = () => {
195
205
  let { apiGatewayUrl: r } = e(), [i, a] = n(0), [o, s] = n(!1);
196
206
  return {
197
207
  uploadFile: t(async (e) => {
198
208
  s(!0), a(0);
199
209
  try {
200
- let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: M }, r)).ensureFolderByPath?.id;
210
+ let t = (await c("mutation SubEnsureFolder($path: String!) {\n ensureFolderByPath(path: $path) { id }\n }", { path: N }, r)).ensureFolderByPath?.id;
201
211
  if (!t) throw Error("Could not resolve the upload folder.");
202
212
  let n = e.type || "application/octet-stream", i = e.name.lastIndexOf("."), o = i > -1 ? e.name.slice(i + 1) : "bin", s = await c("mutation SubInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) {\n uploadUrl\n session { id }\n }\n }", { input: {
203
213
  fileName: e.name,
@@ -232,13 +242,13 @@ var c = async (e, t, n) => {
232
242
  progress: i,
233
243
  isUploading: o
234
244
  };
235
- }, P = () => {
245
+ }, F = () => {
236
246
  let { apiGatewayUrl: n } = e();
237
247
  return t(async (e) => (await c("query SubFileDownloadUrl($id: ID!, $expiresIn: Int) {\n getFileDownloadUrl(id: $id, expiresIn: $expiresIn)\n }", {
238
248
  id: e,
239
249
  expiresIn: 21600
240
250
  }, n)).getFileDownloadUrl, [n]);
241
- }, F = (t = {}) => {
251
+ }, I = (t = {}) => {
242
252
  let { apiGatewayUrl: n } = e();
243
253
  return i({
244
254
  queryKey: [...l.providers, t],
@@ -267,7 +277,7 @@ var c = async (e, t, n) => {
267
277
  }
268
278
  }, n)).subListProviders
269
279
  });
270
- }, I = (t) => {
280
+ }, L = (t) => {
271
281
  let { apiGatewayUrl: n } = e();
272
282
  return i({
273
283
  queryKey: l.provider(t ?? ""),
@@ -279,7 +289,7 @@ var c = async (e, t, n) => {
279
289
  }
280
290
  }`, { id: t }, n)).subProvider
281
291
  });
282
- }, L = () => {
292
+ }, R = () => {
283
293
  let t = a(), { apiGatewayUrl: n } = e();
284
294
  return r({
285
295
  mutationFn: async (e) => (await c(`mutation SubCreateProvider($input: SubCreateProviderInput!) {
@@ -289,7 +299,7 @@ var c = async (e, t, n) => {
289
299
  t.invalidateQueries({ queryKey: l.providers });
290
300
  }
291
301
  });
292
- }, R = () => {
302
+ }, z = () => {
293
303
  let t = a(), { apiGatewayUrl: n } = e();
294
304
  return r({
295
305
  mutationFn: async ({ id: e, input: t }) => (await c(`mutation SubUpdateProvider($id: ID!, $input: SubUpdateProviderInput!) {
@@ -302,7 +312,7 @@ var c = async (e, t, n) => {
302
312
  t.invalidateQueries({ queryKey: l.providers }), t.invalidateQueries({ queryKey: l.provider(e.id) });
303
313
  }
304
314
  });
305
- }, z = () => {
315
+ }, B = () => {
306
316
  let t = a(), { apiGatewayUrl: n } = e();
307
317
  return r({
308
318
  mutationFn: async (e) => (await c("mutation SubArchiveProvider($id: ID!) {\n subArchiveProvider(id: $id)\n }", { id: e }, n)).subArchiveProvider,
@@ -310,16 +320,16 @@ var c = async (e, t, n) => {
310
320
  t.invalidateQueries({ queryKey: l.providers });
311
321
  }
312
322
  });
313
- }, ee = (t) => {
323
+ }, te = (t) => {
314
324
  let { apiGatewayUrl: n } = e();
315
325
  return i({
316
326
  queryKey: [...l.plans, t],
317
327
  enabled: !!t,
318
328
  queryFn: async () => (await c(`query SubPlans($providerId: ID) {
319
- subListPlans(providerId: $providerId) { ${d} }
320
- }`, { providerId: t }, n)).subListPlans
329
+ subListPlans(providerId: $providerId) { items { ${d} } pageInfo { cursor hasMore } }
330
+ }`, { providerId: t }, n)).subListPlans.items
321
331
  });
322
- }, B = () => {
332
+ }, V = () => {
323
333
  let t = a(), { apiGatewayUrl: n } = e();
324
334
  return r({
325
335
  mutationFn: async (e) => (await c(`mutation SubCreatePlan($input: SubCreatePlanInput!) {
@@ -329,7 +339,7 @@ var c = async (e, t, n) => {
329
339
  t.invalidateQueries({ queryKey: l.plans }), t.invalidateQueries({ queryKey: l.provider(e.providerId) });
330
340
  }
331
341
  });
332
- }, V = (t = {}) => {
342
+ }, H = (t = {}) => {
333
343
  let { apiGatewayUrl: n } = e();
334
344
  return i({
335
345
  queryKey: [...l.inbox, t],
@@ -361,7 +371,7 @@ var c = async (e, t, n) => {
361
371
  }
362
372
  }, n)).subListInboxMessages
363
373
  });
364
- }, H = () => {
374
+ }, U = () => {
365
375
  let t = a(), { apiGatewayUrl: n } = e();
366
376
  return r({
367
377
  mutationFn: async (e) => (await c(`mutation SubMarkMessageRead($id: ID!) {
@@ -371,7 +381,7 @@ var c = async (e, t, n) => {
371
381
  t.invalidateQueries({ queryKey: l.inbox });
372
382
  }
373
383
  });
374
- }, U = () => {
384
+ }, W = () => {
375
385
  let t = a(), { apiGatewayUrl: n } = e();
376
386
  return r({
377
387
  mutationFn: async (e) => (await c(`mutation SubIngestMessage($input: SubIngestMessageInput!) {
@@ -381,7 +391,7 @@ var c = async (e, t, n) => {
381
391
  t.invalidateQueries({ queryKey: l.inbox });
382
392
  }
383
393
  });
384
- }, W = (t = {}) => {
394
+ }, G = (t = {}) => {
385
395
  let { apiGatewayUrl: n } = e();
386
396
  return i({
387
397
  queryKey: [...l.invoices, t],
@@ -407,7 +417,7 @@ var c = async (e, t, n) => {
407
417
  }
408
418
  }, n)).subListInvoices
409
419
  });
410
- }, G = () => {
420
+ }, K = () => {
411
421
  let t = a(), { apiGatewayUrl: n } = e();
412
422
  return r({
413
423
  mutationFn: async (e) => (await c(`mutation SubMarkInvoicePaid($id: ID!) {
@@ -417,7 +427,7 @@ var c = async (e, t, n) => {
417
427
  t.invalidateQueries({ queryKey: l.invoices });
418
428
  }
419
429
  });
420
- }, K = () => {
430
+ }, q = () => {
421
431
  let t = a(), { apiGatewayUrl: n } = e();
422
432
  return r({
423
433
  mutationFn: async (e) => (await c(`mutation SubCreateInvoice($input: SubCreateInvoiceInput!) {
@@ -427,13 +437,13 @@ var c = async (e, t, n) => {
427
437
  t.invalidateQueries({ queryKey: l.invoices });
428
438
  }
429
439
  });
430
- }, q = (t) => {
440
+ }, J = (t) => {
431
441
  let { apiGatewayUrl: n } = e();
432
442
  return i({
433
443
  queryKey: [...l.paymentInstruments, t],
434
- queryFn: async () => (await c("query SubPaymentInstruments($ownerId: ID) {\n subListPaymentInstruments(ownerId: $ownerId) {\n id label type status brand last4 expiryMonth expiryYear isDefault\n ownerId workspaceId createdAt updatedAt\n }\n }", { ownerId: t }, n)).subListPaymentInstruments
444
+ queryFn: async () => (await c("query SubPaymentInstruments($ownerId: ID) {\n subListPaymentInstruments(ownerId: $ownerId) {\n items {\n id label type status brand last4 expiryMonth expiryYear isDefault\n ownerId workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListPaymentInstruments.items
435
445
  });
436
- }, J = () => {
446
+ }, Y = () => {
437
447
  let t = a(), { apiGatewayUrl: n } = e();
438
448
  return r({
439
449
  mutationFn: async (e) => (await c(`mutation SubCreatePaymentInstrument($input: SubCreatePaymentInstrumentInput!) {
@@ -443,7 +453,7 @@ var c = async (e, t, n) => {
443
453
  t.invalidateQueries({ queryKey: l.paymentInstruments });
444
454
  }
445
455
  });
446
- }, Y = () => {
456
+ }, X = () => {
447
457
  let t = a(), { apiGatewayUrl: n } = e();
448
458
  return r({
449
459
  mutationFn: async (e) => (await c("mutation SubRemovePaymentInstrument($id: ID!) {\n subRemovePaymentInstrument(id: $id)\n }", { id: e }, n)).subRemovePaymentInstrument,
@@ -451,13 +461,13 @@ var c = async (e, t, n) => {
451
461
  t.invalidateQueries({ queryKey: l.paymentInstruments });
452
462
  }
453
463
  });
454
- }, X = (t) => {
464
+ }, Z = (t) => {
455
465
  let { apiGatewayUrl: n } = e();
456
466
  return i({
457
467
  queryKey: [...l.channels, t],
458
- queryFn: async () => (await c("query SubChannels($ownerId: ID) {\n subListChannels(ownerId: $ownerId) {\n id label type status address ingestEnabled ownerId verifiedAt\n workspaceId createdAt updatedAt\n }\n }", { ownerId: t }, n)).subListChannels
468
+ queryFn: async () => (await c("query SubChannels($ownerId: ID) {\n subListChannels(ownerId: $ownerId) {\n items {\n id label type status address ingestEnabled ownerId verifiedAt\n workspaceId createdAt updatedAt\n }\n pageInfo { cursor hasMore }\n }\n }", { ownerId: t }, n)).subListChannels.items
459
469
  });
460
- }, Z = () => {
470
+ }, Q = () => {
461
471
  let t = a(), { apiGatewayUrl: n } = e();
462
472
  return r({
463
473
  mutationFn: async (e) => (await c(`mutation SubCreateChannel($input: SubCreateChannelInput!) {
@@ -467,7 +477,7 @@ var c = async (e, t, n) => {
467
477
  t.invalidateQueries({ queryKey: l.channels });
468
478
  }
469
479
  });
470
- }, Q = () => {
480
+ }, ne = () => {
471
481
  let t = a(), { apiGatewayUrl: n } = e();
472
482
  return r({
473
483
  mutationFn: async (e) => (await c(`mutation SubVerifyChannel($id: ID!) {
@@ -477,21 +487,22 @@ var c = async (e, t, n) => {
477
487
  t.invalidateQueries({ queryKey: l.channels });
478
488
  }
479
489
  });
480
- }, $ = (t = {}) => {
490
+ }, re = (t = {}) => {
481
491
  let { apiGatewayUrl: n } = e();
482
492
  return i({
483
493
  queryKey: [...l.agents, t],
484
494
  queryFn: async () => (await c(`query SubAgents($kind: SubAgentKind, $status: SubAgentStatus, $ownerId: ID) {
485
495
  subListAgents(kind: $kind, status: $status, ownerId: $ownerId) {
486
- ${h}
496
+ items { ${h} }
497
+ pageInfo { cursor hasMore }
487
498
  }
488
499
  }`, {
489
500
  kind: t.kind,
490
501
  status: t.status,
491
502
  ownerId: t.ownerId
492
- }, n)).subListAgents
503
+ }, n)).subListAgents.items
493
504
  });
494
- }, te = (t) => {
505
+ }, ie = (t) => {
495
506
  let { apiGatewayUrl: n } = e();
496
507
  return i({
497
508
  queryKey: l.agent(t ?? ""),
@@ -506,7 +517,7 @@ var c = async (e, t, n) => {
506
517
  }
507
518
  }`, { id: t }, n)).subAgent
508
519
  });
509
- }, ne = () => {
520
+ }, ae = () => {
510
521
  let t = a(), { apiGatewayUrl: n } = e();
511
522
  return r({
512
523
  mutationFn: async (e) => (await c(`mutation SubCreateAgent($input: SubCreateAgentInput!) {
@@ -516,7 +527,7 @@ var c = async (e, t, n) => {
516
527
  t.invalidateQueries({ queryKey: l.agents });
517
528
  }
518
529
  });
519
- }, re = () => {
530
+ }, oe = () => {
520
531
  let t = a(), { apiGatewayUrl: n } = e();
521
532
  return r({
522
533
  mutationFn: async ({ id: e, status: t }) => (await c(`mutation SubSetAgentStatus($id: ID!, $status: SubAgentStatus!) {
@@ -529,25 +540,25 @@ var c = async (e, t, n) => {
529
540
  t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.id) });
530
541
  }
531
542
  });
532
- }, ie = () => {
543
+ }, $ = () => {
533
544
  let t = a(), { apiGatewayUrl: n } = e();
534
545
  return r({
535
546
  mutationFn: async (e) => (await c(`mutation SubCreatePolicy($input: SubCreatePolicyInput!) {
536
- subCreatePolicy(input: $input) { ${x} }
547
+ subCreatePolicy(input: $input) { ${ee} }
537
548
  }`, { input: e }, n)).subCreatePolicy,
538
549
  onSuccess: (e) => {
539
550
  t.invalidateQueries({ queryKey: l.agents }), t.invalidateQueries({ queryKey: l.agent(e.agentId) });
540
551
  }
541
552
  });
542
- }, ae = (t) => {
553
+ }, se = (t) => {
543
554
  let { apiGatewayUrl: n } = e();
544
555
  return i({
545
556
  queryKey: [...l.workflows, t],
546
557
  queryFn: async () => (await c(`query SubWorkflows($status: SubWorkflowStatus) {
547
- subListWorkflows(status: $status) { ${g} }
548
- }`, { status: t }, n)).subListWorkflows
558
+ subListWorkflows(status: $status) { items { ${g} } pageInfo { cursor hasMore } }
559
+ }`, { status: t }, n)).subListWorkflows.items
549
560
  });
550
- }, oe = () => {
561
+ }, ce = () => {
551
562
  let t = a(), { apiGatewayUrl: n } = e();
552
563
  return r({
553
564
  mutationFn: async (e) => (await c(`mutation SubCreateWorkflow($input: SubCreateWorkflowInput!) {
@@ -557,7 +568,7 @@ var c = async (e, t, n) => {
557
568
  t.invalidateQueries({ queryKey: l.workflows });
558
569
  }
559
570
  });
560
- }, se = () => {
571
+ }, le = () => {
561
572
  let t = a(), { apiGatewayUrl: n } = e();
562
573
  return r({
563
574
  mutationFn: async (e) => (await c(`mutation SubActivateWorkflow($id: ID!) {
@@ -567,8 +578,82 @@ var c = async (e, t, n) => {
567
578
  t.invalidateQueries({ queryKey: l.workflows });
568
579
  }
569
580
  });
581
+ }, ue = (t = {}) => {
582
+ let { apiGatewayUrl: n } = e();
583
+ return i({
584
+ queryKey: [...l.adapterSubmissions, t],
585
+ queryFn: async () => (await c(`query SubAdapterSubmissions($status: SubSubmissionStatus, $pagination: PaginationInput) {
586
+ subListAdapterSubmissions(status: $status, pagination: $pagination) {
587
+ items { ${x} }
588
+ pageInfo { cursor hasMore }
589
+ }
590
+ }`, {
591
+ status: t.status,
592
+ pagination: t.pagination ?? {
593
+ limit: 50,
594
+ offset: 0
595
+ }
596
+ }, n)).subListAdapterSubmissions
597
+ });
598
+ }, de = () => {
599
+ let t = a(), { apiGatewayUrl: n } = e();
600
+ return r({
601
+ mutationFn: async ({ id: e, notes: t }) => (await c(`mutation SubApproveAdapter($id: ID!, $notes: String) {
602
+ subApproveAdapter(id: $id, notes: $notes) { ${x} }
603
+ }`, {
604
+ id: e,
605
+ notes: t
606
+ }, n)).subApproveAdapter,
607
+ onSuccess: () => {
608
+ t.invalidateQueries({ queryKey: l.adapterSubmissions });
609
+ }
610
+ });
611
+ }, fe = () => {
612
+ let t = a(), { apiGatewayUrl: n } = e();
613
+ return r({
614
+ mutationFn: async ({ id: e, reason: t }) => (await c(`mutation SubRejectAdapter($id: ID!, $reason: String!) {
615
+ subRejectAdapter(id: $id, reason: $reason) { ${x} }
616
+ }`, {
617
+ id: e,
618
+ reason: t
619
+ }, n)).subRejectAdapter,
620
+ onSuccess: () => {
621
+ t.invalidateQueries({ queryKey: l.adapterSubmissions });
622
+ }
623
+ });
624
+ }, pe = (t = {}) => {
625
+ let { apiGatewayUrl: n } = e();
626
+ return i({
627
+ queryKey: [...l.marketplaceReports, t],
628
+ queryFn: async () => (await c(`query SubMarketplaceReports($status: SubReportStatus, $pagination: PaginationInput) {
629
+ subListMarketplaceReports(status: $status, pagination: $pagination) {
630
+ items { ${S} }
631
+ pageInfo { cursor hasMore }
632
+ }
633
+ }`, {
634
+ status: t.status,
635
+ pagination: t.pagination ?? {
636
+ limit: 50,
637
+ offset: 0
638
+ }
639
+ }, n)).subListMarketplaceReports
640
+ });
641
+ }, me = () => {
642
+ let t = a(), { apiGatewayUrl: n } = e();
643
+ return r({
644
+ mutationFn: async ({ id: e, action: t, reason: r }) => (await c(`mutation SubModerateListing($id: ID!, $action: SubModerationAction!, $reason: String!) {
645
+ subModerateListing(id: $id, action: $action, reason: $reason) { ${S} }
646
+ }`, {
647
+ id: e,
648
+ action: t,
649
+ reason: r
650
+ }, n)).subModerateListing,
651
+ onSuccess: () => {
652
+ t.invalidateQueries({ queryKey: l.marketplaceReports });
653
+ }
654
+ });
570
655
  };
571
656
  //#endregion
572
- export { se as useActivateWorkflow, te as useAgent, $ as useAgents, A as useAllAssets, z as useArchiveProvider, E as useCancelRelationship, X as useChannels, ne as useCreateAgent, j as useCreateAsset, Z as useCreateChannel, k as useCreateEntitlement, K as useCreateInvoice, J as useCreatePaymentInstrument, B as useCreatePlan, ie as useCreatePolicy, L as useCreateProvider, w as useCreateRelationship, oe as useCreateWorkflow, P as useFileDownloadUrl, V as useInboxMessages, U as useIngestMessage, W as useInvoices, G as useMarkInvoicePaid, H as useMarkMessageRead, q as usePaymentInstruments, ee as usePlans, I as useProvider, F as useProviders, C as useRelationship, S as useRelationships, Y as useRemovePaymentInstrument, O as useRenewalEvents, re as useSetAgentStatus, T as useTransitionRelationship, R as useUpdateProvider, D as useUpdateRelationship, N as useUploadFile, Q as useVerifyChannel, ae as useWorkflows };
657
+ export { le as useActivateWorkflow, ue as useAdapterSubmissions, ie as useAgent, re as useAgents, j as useAllAssets, de as useApproveAdapter, B as useArchiveProvider, D as useCancelRelationship, Z as useChannels, ae as useCreateAgent, M as useCreateAsset, Q as useCreateChannel, A as useCreateEntitlement, q as useCreateInvoice, Y as useCreatePaymentInstrument, V as useCreatePlan, $ as useCreatePolicy, R as useCreateProvider, T as useCreateRelationship, ce as useCreateWorkflow, F as useFileDownloadUrl, H as useInboxMessages, W as useIngestMessage, G as useInvoices, K as useMarkInvoicePaid, U as useMarkMessageRead, pe as useMarketplaceReports, me as useModerateListing, J as usePaymentInstruments, te as usePlans, L as useProvider, I as useProviders, fe as useRejectAdapter, w as useRelationship, C as useRelationships, X as useRemovePaymentInstrument, k as useRenewalEvents, oe as useSetAgentStatus, E as useTransitionRelationship, z as useUpdateProvider, O as useUpdateRelationship, P as useUploadFile, ne as useVerifyChannel, se as useWorkflows };
573
658
 
574
659
  //# sourceMappingURL=useSubscriberBotApi.js.map